Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
http://codemirror.net/
If i apply the code mirror plugin to the body area, bueditor does not work any longer, error if any botton clicked.
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLTextAreaElement.setSelectionRange
Codemirror adds an verlay like you syntax highlight for bueditor does.
Maybe there is a quick fix that you know of. If not just close. Thx for your help.
Comments
Comment #1
ufku CreditAttribution: ufku commentedCodemirror hides the actual textarea and provides an invisible field for text input. Not sure how to make it compatibe with BUEditor.
Comment #2
marcoka CreditAttribution: marcoka commentedistn that what your highlighting plugin for bueditor does too?
meaning this: http://ufku.com/drupal/bueditor/contributions/html-syntax-highlighter
Comment #3
ufku CreditAttribution: ufku commentedNo. BUE highlighter does not hide the textarea. It just displays a colored text layer under it. With an adjustment in the opacity it feels like writing colored text in the textarea.
Comment #4
marcoka CreditAttribution: marcoka commentedin general bueditor must identify the textarea where the code is added (for example if i click on BOLD). Does it identify the textarea by css id? so changing the id? that maybe a way to make bueditor working again if codemirror is activated? what do you think?
Comment #5
ufku CreditAttribution: ufku commentedThe textarea is stored as a javascript object which in this case is not relevant. The textarea must be focusable for the buttons to work otherwise the click event of the buttons must be changed to do some other stuff like acting on code mirror UI.
Comment #6
marcoka CreditAttribution: marcoka commentedi think your system of highlighting is a better solution. i will try to make some custom highlighter for additional stuff like "{{" in blue or | in red. Like markdown highlight and simple stuff.
Comment #7
marcoka CreditAttribution: marcoka commented