We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3072
    • 20 Posts
    For about a few hours I´ve been trying to configure TinyMCE, but its a chaos.

    1. The preferences in the modul don´t work, I always get the default values from tinymce.functions.php if I use the "TinyMCE Settings" setting in site preferences.
    if($theme == "editor" || $theme == "custom" || $theme == "full"){
    			$tinyTheme = "advanced";
    			if(($theme == "editor" || $theme == "full") || ($theme == "custom" && (empty($plugins) || empty($buttons1)))){
    				$blockFormats = "p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre,address";
    				$plugins = "style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media";
    				$buttons1 = "undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help";
    				$buttons2 = "bold,italic,underline,strikethrough,sub,sup,separator,blockquote,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops";
    				$buttons3 = ""; 
    				$buttons4 = ""; 			
    		    }
    		} else {
    			$tinyTheme = $theme;
    		}

    http://modxcms.com/forums/index.php/topic,5403.msg193758.html#msg193758 here the same problem

    2.
    $tinymceInit .= "		  valid_elements : tinymce_valid_elements,\n";

    Here are valid_elements, but where can I enter that?
    Why is there an additional file for valid elements called xconfig.js?


      • 7231
      • 4,205 Posts
      Have you tried setting this in the Plug-in configurations tab? Not sure but I think that you could set this in the Custom Settings field.

        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 3072
        • 20 Posts
        Quote from: dev_cw at Feb 08, 2009, 03:35 PM

        Have you tried setting this in the Plug-in configurations tab? Not sure but I think that you could set this in the Custom Settings field.
        I´m talking in 1. about this setting, but it has no effect on the TinyMCE. The settings for the web buttons come from tinymce.functions.php.
        heres my code I used:
        &customparams=Custom Parameters;textarea; &tinyFormats=Block Formats;text;p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre,address &entity_encoding=Entity Encoding;list;named,numeric,raw;named &entities=Entities;text; &tinyPathOptions=Path Options;list;rootrelative,docrelative,fullpathurl;docrelative &tinyCleanup=Cleanup;list;enabled,disabled;enabled &tinyResizing=Advanced Resizing;list;true,false;false &advimage_styles=Advanced Image Styles;text; &advlink_styles=Advanced Link Styles;text; &disabledButtons=Disabled Buttons;text; &tinyLinkList=Link List;list;enabled,disabled;enabled &webtheme=Web Theme;list;simple,advanced,editor,custom;custom &webPlugins=Web Plugins;text;style,advimage,safari,dvlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media &webButtons1=Web Buttons 1;text;undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help &webButtons2=Web Buttons 2;text;italic,underline,strikethrough,sub,sup,separator,separator,blockquote,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops &webButtons3=Web Buttons 3;text; &webButtons4=Web Buttons 4;text; &webAlign=Web Toolbar Alignment;list;ltr,rtl;ltr

        The bold button is here missing, but when I edit the text, it´s still there.

        I´m not sure if your answer was correlated to 2., but it cause an error.
        http://modxcms.com/forums/index.php/topic,32850.0.html

        I don´t understand why for the entries in you need plenty of files and scripts. How about keep it simple? KIS?
        tinyMCE.init({
        	
        });

        I´m very frustrated now, I just wanted to modify the the tinyMCE.init but things are so complex here.
        Neither the settings in xconfig,js nor the default settings "TinyMCE Settings,Simple,Advanced,Content Editor,Custom" are productive useable. The code is just a plenty of s***.
        To use a file for configuration is not a good idea, because changes survive no update.
        Here a little piece, there a little piece and everywhere little pieces of code for the setting.

        Somebody, who knows what he does, don´t want to play with the pseudo interface. Somebody who don´t know what this entries mean, is as helpless as before.