RedDragonWebDesign
RedDragonWebDesign
You're welcome. Thanks for responding. Chrome 109.0.5414.120 (Official Build) (64-bit) Windows 10 Build 19045
Laravel 10 support would be amazing. Can this PR please be reviewed by a maintainer? edit: For anyone googling, ended up using https://github.com/kitloong/laravel-migrations-generator, which has Laravel 9/10/11 support
Fixes #40 Fixes #39 Fixes #35
Move parseRichText to richTextBox class
Also, paste over old text with new text. Then Ctrl-Z. It will leave the new text, and put the old text beneath it.
Can potentially solve this by using `document.execCommand()`. That plays nicely with undo and redo. Can potentially re-factor to use `document.execCommand(hiliteColor, ??, "Orange")`. Might also fix the richTextBox cursor issue
> Have you considered a parser like jquery's $(selector).text() instead of innerHTML? It strips tags. Using that might save the headache of trying to count how many tags you inserted...
Can potentially solve this by using `document.execCommand(hiliteColor, ??, "Orange")`, instead of converting to string then adding spans
Try some of the ideas from Stack Overflow bounty https://stackoverflow.com/questions/62705449/fix-cursor-position-when-replacing-innerhtml-of-div-contenteditable-true
This recent StackOverflow answer looks promising: https://stackoverflow.com/a/78955367/3480193