We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25799
    • 9 Posts
    Hi all,

    I am having problems with getting content templates to work with TinyMce.


    The stand alone version of tinyMce has this function but I’m having trouble implanting it on the Modx plug in.

    The "call" i would like to use is:

    tinyMCE.init({
    	mode : "textareas",
    	theme : "advanced",
    	plugins : "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
    	theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
    	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
    	theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
    	theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking",
    	theme_advanced_toolbar_location : "top",
    	theme_advanced_toolbar_align : "left",
    	theme_advanced_path_location : "bottom",
    	extended_valid_elements : "a[name|href|target|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]",
    	template_external_list_url : "example_template_list.js"
    });
    


    Where
    template_external_list_url : "example_template_list.js"

    does the trick.

    Some questions:

    So is this function ported ?

    if yes

    Does someone has any idea to do this?

    Thanks in Advace
    RWQ


    Updtae:

    wii!
    I got it working.... After 2 days smiley

      • 22098
      • 218 Posts
      could you help us out how you got it fixed?


      EDIT: found it, just add it in the configuration settings of the plugin in the custom params field