Changes between Version 15 and Version 16 of AddWYSIWYGEditor
- Timestamp:
- Apr 14, 2008, 1:50:53 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AddWYSIWYGEditor
v15 v16 38 38 }}} 39 39 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.htmlTinyMCE Documentation].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://wiki.moxiecode.com/index.php/TinyMCE:Index TinyMCE Documentation]. 41 41 42 42 3. Add '''js''' option to admin sections of your model (excerpt from my model): … … 118 118 * Create your text using conventional WYSIWYG editor with all niceties (e.g., Word) and paste the result to TinyMCE. 119 119 * 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.htmlremove_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. 122 122 * Alternatively you can change the default textarea size by using: 123 123 {{{