Changes between Version 33 and Version 34 of AddWYSIWYGEditor


Ignore:
Timestamp:
Aug 18, 2010, 2:37:14 PM (14 years ago)
Author:
Arminas Žukauskas
Comment:

tinymce flash plugin changed to media plugin

Legend:

Unmodified
Added
Removed
Modified
  • AddWYSIWYGEditor

    v33 v34  
    4242
    4343(4/22/2010 - note: I tried this today with the latest TinyMCE (3.3.3 Main Package).  I needed to modify the textareas.js file, removing ",zoom,flash" from the "plugins:" section.  The Firebug 'Net' panel showed that the files for these plugins were not there.)
     44
     45(8/18/2010 - note: Use tinymce [http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media "media" plugin] instead, also add "media" to the buttons. Then your '''textareas.js''' could be:
     46
     47{{{
     48tinyMCE.init({
     49        mode : "textareas",
     50        theme : "advanced",
     51        //content_css : "/appmedia/blog/style.css",
     52        theme_advanced_toolbar_location : "top",
     53        theme_advanced_toolbar_align : "left",
     54        theme_advanced_buttons1 : "fullscreen,separator,preview,separator,bold,italic,underline,strikethrough,separator,bullist,numlist,outdent,indent,separator,undo,redo,separator,link,unlink,anchor,separator,image,media,cleanup,help,separator,code",
     55        theme_advanced_buttons2 : "",
     56        theme_advanced_buttons3 : "",
     57        auto_cleanup_word : true,
     58        plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,searchreplace,print,contextmenu,fullscreen,media",
     59        plugin_insertdate_dateFormat : "%m/%d/%Y",
     60        plugin_insertdate_timeFormat : "%H:%M:%S",
     61        extended_valid_elements : "a[name|href|target=_blank|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
     62        fullscreen_settings : {
     63                theme_advanced_path_location : "top",
     64                theme_advanced_buttons1 : "fullscreen,separator,preview,separator,media,cut,copy,paste,separator,undo,redo,separator,search,replace,separator,code,separator,cleanup,separator,bold,italic,underline,strikethrough,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,help",
     65                theme_advanced_buttons2 : "removeformat,styleselect,formatselect,fontselect,fontsizeselect,separator,bullist,numlist,outdent,indent,separator,link,unlink,anchor",
     66                theme_advanced_buttons3 : "sub,sup,separator,image,insertdate,inserttime,separator,tablecontrols,separator,hr,advhr,visualaid,separator,charmap,emotions,iespell,flash,separator,print"
     67        }
     68});
     69
     70}}}
     71
     72
    4473
    45743. Add '''js''' option to admin sections of your model (excerpt from my model):
     
    147176}}}
    148177 * If you are a Safari user and TinyMCE isn't loading properly make sure that you have all the plugins specified in your textareas.js file. The plugins listed on the textareas.js file for this wikipage include plugins that are not included with the default TinyMCE download. This issue appears to only occur in Safari on OSX.
    149 
Back to Top