We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8489
    • 90 Posts
    When your using TinyMCE as standalone you can set preferences trough tinyMCE.init({....
    Is this also possible with the TinyMCE plugin?

    With kind regards,
    Edski
      • 15001
      • 697 Posts
      I’m also interested in this init() function. In TinyMCE plugin’s source code is some section dedicated to initialization :
      case "OnRichTextEditorInit"

      In my case, I’m trying to link my own stylesheet for TinyMCE content like described here :
      http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css

      There are 2 files in TinyMCE jsscripts folder : tiny_mce.js and tiny_mce_src.js.
      I assume that tiny_mce_src is the same code before compression.

      In that code, there is some _init : function() {
      Probably I have to set the stylesheet here. But how ?
        • 4041
        • 788 Posts
        @Jul: to add a custom css file go to top menu: Tools/Configuration/Interface & Features/ -> scroll down and find the "Path to CSS file" area and add the path to your style sheet there. I normally create a new slim down stylesheet version just for the editor (with whichever styles you want users to access) and link to that. You can also add css selectors a few lines down at the bottom of that page in the CSS Selectors area as opposed to linking to a stylesheet.

        @Edski: You should be able to add custom parameters in the Tinymce plugin edit screen in the "Custom Parameters" textarea. Looking at the code (assets/plugins/tinymce/tinymce.functions.php), I assume they should be added as a comma delimited list:

        param1: value1,param2: value2,param3: value3

        hope this helps smiley

          xforum
          http://frsbuilders.net (under construction) forum for evolution
          • 15001
          • 697 Posts
          @Breezer: Fantastic! Thanks a lot! Do you know if it is also possible to add drop lists with available chunks and snippets, so that a non-expert can easily insert predefined chunk-based layouts ?