We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inputStyle: 'contenteditable'
#143 Introduce inputStyle: 'contenteditable'
I experienced some weird bugs with easy-mde (getCursor and setCursor didn't work fine). I have figured out why: inputStyle: 'contenteditable' doesn't work as well than inputStyle: 'textarea'. https://discuss.codemirror.net/t/is-the-textarea-inputstyle-going-to-be-deprecated-in-the-future/1278
inputStyle: 'textarea'
(don't work well because the mouse go on the begining after a click)
The text was updated successfully, but these errors were encountered:
inputStyle: "contenteditable",
I may be wrong here, but I've dealt with a similar issue trying to get zurb/tribute integrated with easyMDE.
It seems when anything not native to codemirror occurs, the cursor location isn't preserved.
I've had to do a getCursor, then do my action, followed by a setCursor. This has worked well enough, but is not perfect.
the issue is more with CodeMirror's cursor positioning in contenteditables.
Sorry, something went wrong.
I made a fix on codemirror codemirror/codemirror5#6168 but I think we have to set options.forceFocus to true like this:
options.forceFocus
true
editor.setSelection({line:0, ch:2}, {line:0, ch:5}, {forceFocus:true}).
editor.setSelection({line:0, ch:2}, {line:0, ch:5}, {forceFocus:true})
Updated codemirror to version 5.52.2 (fix:Ionaru#160)
693db8b
Successfully merging a pull request may close this issue.
#143 Introduce inputStyle: 'contenteditable'
I experienced some weird bugs with easy-mde (getCursor and setCursor didn't work fine). I have figured out why:
inputStyle: 'contenteditable'
doesn't work as well thaninputStyle: 'textarea'
. https://discuss.codemirror.net/t/is-the-textarea-inputstyle-going-to-be-deprecated-in-the-future/1278Work well with
inputStyle: 'textarea'
Don't work well with
inputStyle: 'contenteditable'
(don't work well because the mouse go on the begining after a click)
The text was updated successfully, but these errors were encountered: