Custom Rich Text Editor
Permalink
I am trying to customize the concrete5 tinymce rich text editor (at least, it looks like tiny MCE to me)
Most of it looks fairly self-explanatory, i.e.
I am guessing I either write "bold" or delete "bold" to take out the bold button, for example.
How do I
- Keep the "PASTE FROM WORD"?
- Keep the "INSERT SPECIAL CHARACTERS"?
Most of it looks fairly self-explanatory, i.e.
theme_concrete_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,hr,|,styleselect,formatselect,fontsizeselect", theme_concrete_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,forecolor", theme_concrete_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite",
I am guessing I either write "bold" or delete "bold" to take out the bold button, for example.
How do I
- Keep the "PASTE FROM WORD"?
- Keep the "INSERT SPECIAL CHARACTERS"?
Here's code you might be able to work with:
Just the Custom default with visualchars and paste from word added.
theme : "concrete", plugins: "inlinepopups,spellchecker,safari,advlink,paste,visualchars", editor_selector : "ccm-advanced-editor", spellchecker_languages : "+English=en", theme_concrete_buttons1 : "charmap,pasteword,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,hr,|,styleselect,formatselect,fontsizeselect", theme_concrete_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,forecolor", theme_concrete_blockformats : "p,address,pre,h1,h2,h3,div,blockquote,cite", theme_concrete_toolbar_align : "left", theme_concrete_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats", theme_concrete_font_sizes : "1,2,3,4,5,6,7", theme_concrete_styles: "Note=ccm-note", spellchecker_languages : "+English=en"
Just the Custom default with visualchars and paste from word added.
You need to add the following after plugins (remember separate with comma):
visualchars,paste
Then where you want the buttons (controls) displayed in the toolbar add "pasteword" and "charmap" (without the quotes) - again keep commas in between.
Here's a direct link to the reference guide:http://www.tinymce.com/wiki.php/Buttons/controls...