Closed (fixed)
Project:
BUEditor
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2009 at 15:43 UTC
Updated:
18 Jul 2011 at 19:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ufku commentedUnfortunately, not possible.
Comment #3
djs_core commentedOk. Thanks for the info ;) I have one more question:
Is there any way to add a texarea parameter -> wrap = "off" (to turn off the automatic line break) ?
Comment #4
ufku commentedyou may try white-space property of CSS
#TEXTAREA-ID {
white-space: nowrap;
}
Comment #5
djs_core commentedSo it does not work :( (see attachment)
Comment #6
ufku commentedthen try overflow: scroll;
Comment #7
djs_core commentedNothing :(
Comment #8
ufku commentedsorry, can't help.
Comment #9
djs_core commentedI found this syntax highlighter: http://marijn.haverbeke.nl/codemirror/
Here is XML/HTML example: http://marijn.haverbeke.nl/codemirror/htmltest.html
Would be possible to implement this syntax highlighter into BuEditor ?
Comment #10
ufku commentedThose are nice syntax highlighters but integrating them into BUE requires a rewrite of all editor methods. It might be done by implementing a integration layer. The result could look nice but be slower for no doubt.
Comment #11
ufku commentedThis may be the answer: http://ufku.com/drupal/bueditor/contributions/html-syntax-highlighter
Comment #12
shinery commentedHi, I installed the Syntax Highlighter files according to the instructions in http://ufku.com/drupal/bueditor/contributions/html-syntax-highlighter but it does not work.
1. The files bue.highlight.js and bue.highlight.css were uploaded to the /.../bueditor/library/ folder.
2. The Button Code was added in the BUEditor "Buttons" as following :
But when I pressed the button, it says:"TypeError: Object [object Object] has no method 'highlight'" in Chrome5.0.375.86 , and it says:"TypeError: E.highlight is not a function" in Firefox 3.6.6.
Is there anything wrong for the installation? Thank you very much!
Comment #13
shinery commentedComment #14
ufku commentedThe files in library folder are not automatically included. And also you should not put any custom library files there. Upload them anywhere web accessible and define the paths in editor settings.
Comment #15
shinery commentedThank you ufku.
I have uploaded the bue.highlight.css file and the bue.highlight.js file to /sites/all/libraries/bueditor/. But how can I define the custom paths in Editor specific library files? I mean how to write the paths line. Should it be like:
/sites/all/libraries/bueditor/bue.highlight.jsor like%sites%all/libraries/bueditor/bue.highlight.js?Comment #16
ufku commentedSpecify paths relative to your drupal root like sites/all/libraries/bueditor/bue.highlight.js
You can shorten the paths by using tokens. Please read the field description for available tokens.
Comment #18
doublejosh commentedLove this!
All work fine except I can't figure out how to turn it on initially with the code provided?
Comment #19
ufku commentedThe second one is a template button. Its title must start with tpl:
Ex:
tpl:Turn on highlighting initiallyWhen the content of a template button is javascript, it is executed on editor load. When it is HTML the content is inserted in editor layout at the button position.
Comment #20
doublejosh commentedThanks! So easy.
Just hadn't noticed the use of the "tpl" namespace within the UI.