Code

Changes between Version 15 and Version 16 of AddWYSIWYGEditor


Ignore:
Timestamp:
04/14/08 11:50:53 (6 years ago)
Author:
adi@…
Comment:

updated tinyMCE documentation URLs

Legend:

Unmodified
Added
Removed
Modified
  • AddWYSIWYGEditor

    v15 v16  
    3838}}} 
    3939 
    40 Mode "textareas" instructs TinyMCE to convert '''all''' textareas to WYSIWYG editors. I use the advanced theme, and practically all standard plugins, which don't require server support. In inline mode you have minimalistic toolbar with the most essential tools. When you switch to full-screen mode (tool's icon looks like a monitor), you have practically all tools available for advanced editing. You can look up all options in [http://tinymce.moxiecode.com/tinymce/docs/index.html TinyMCE Documentation]. 
     40Mode "textareas" instructs TinyMCE to convert '''all''' textareas to WYSIWYG editors. I use the advanced theme, and practically all standard plugins, which don't require server support. In inline mode you have minimalistic toolbar with the most essential tools. When you switch to full-screen mode (tool's icon looks like a monitor), you have practically all tools available for advanced editing. You can look up all options in [http://wiki.moxiecode.com/index.php/TinyMCE:Index TinyMCE Documentation]. 
    4141 
    42423. Add '''js''' option to admin sections of your model (excerpt from my model): 
     
    118118 * Create your text using conventional WYSIWYG editor with all niceties (e.g., Word) and paste the result to TinyMCE. 
    119119 * Go to HTML mode to see generated code. You can change it here to make it perfect. 
    120  * If you find problems while using certain tags in the editor (like all newlines between <pre> tags being substituted by </pre><pre>), just add to the file textareas.js the line  '''remove_linebreaks : false,''' This problem arises because the option [http://tinymce.moxiecode.com/tinymce/docs/option_remove_linebreaks.html remove_linebreaks] is enabled by default. 
    121  * If you want to enlarge the default textarea provided by django (and you don't want to wait for this [http://code.djangoproject.com/ticket/2596]) add an onpageload callback to your init call ([http://tinymce.moxiecode.com/tinymce/docs/option_onpageload.html]). Called after pageload but before tinymce initialisation so you can change textarea sizes in the callback. 
     120 * If you find problems while using certain tags in the editor (like all newlines between <pre> tags being substituted by </pre><pre>), just add to the file textareas.js the line  '''remove_linebreaks : false,''' This problem arises because the option [http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/remove_linebreaks remove_linebreaks] is enabled by default. 
     121 * If you want to enlarge the default textarea provided by django (and you don't want to wait for this [http://code.djangoproject.com/ticket/2596]) add an onpageload callback to your init call ([http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/onpageload onpageload]). Called after pageload but before tinymce initialisation so you can change textarea sizes in the callback. 
    122122 * Alternatively you can change the default textarea size by using: 
    123123{{{