ADD SPELL CHECK TO YOUR CMS BUILDER WYSIWYG EDITOR - OLDER VERSIONS - Dec 23rd, 2012
|
SPELLCHECK ADDED TO WYSIWYG EDITOR (CMSB v1.35 and below)
The latest versions of CMSB use the styles in /css/wysiwyg.css for the drop down styles in the WYSIWYG editor, so all you have to do is add the CSS styles that you want available to this file. See the next recipe for how to implement this in v1.36.
In older versions, you may have to edit the /lib/wysiwyg.php
Search for:
"theme_advanced_buttons1"
Remove the "formatselect, fontsizeselect" buttons and replace with "styleselect". This will use a pull down of style classes instead of the format and font size pull downs. Like this:
theme_advanced_buttons1 : "styleselect, bold, (... your buttons here ...), fullscreen",
Then just add the classes you want available to this file: /css/wysiwyg.css
Next, make sure your viewer pages also load a .css file that has the same classes in it. Something like this:
<link rel="stylesheet" type="text/css" href="css/style.css" />
Open your “cmsAdmin/lib/wysiwyg.php” file.
Search for:
"theme_advanced_buttons1"
That line specifies which buttons to display. You can find a complete button list here:
http://wiki.moxiecode.com/index.php/TinyMCE:Control_reference
Remove the "formatselect, fontsizeselect" buttons and replace with "styleselect". This will use a pull down of style classes instead of the format and font size pull downs. Like this:
theme_advanced_buttons1 : "styleselect, bold, (... your buttons here ...), fullscreen",
Then just add the classes you want available to this file: /css/wysiwyg.css
Next, make sure your viewer pages also load a .css file that has the same classes in it. Something like this:
<link rel="stylesheet" type="text/css" href="css/style.css" />
Later Versions of the WYSIWYG editor do not need the following.
In your .CSS file, add the following styles or the editor will not function in some browsers.
body.mceContentBody { background:#FFFFFF; }
body.mceContentBody, .mceContentBody td, .mceContentBody pre { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; }
|
The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact
Interactive Tools for information on the downloading of the software or the purchasing of licenses.