We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for TinyMCE 4.0.0-pl by splittingred.

    Brief Description:

    TinyMCE version 3.2.7.0 for MODx Revolution. Works with Revolution 2.0.0-RC2 or later only.
    New in 4.0.0

    • Fixed language setting being ignored
    • Fixed bug with rte in use in TVs in non-document resources
    • Fixed bug with syncing
    • Adjusted rte loading logic to properly load right data for TV rtes
    • Fixed bug with mce tags being added in, cleanup setting now defaults to true
    • Added ability to search by pagetitle/alias for a Resource when adding a link, and it will auto-add the tag into the url field.
    • Fixed css_selectors bug
    • Fixed various other bugs
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 2035
      • 19 Posts
      Hello! I’m just installed 4.0.0-pl at modx 2.0.0-rc3.

      1. This is small bug:

      Lets’go to "System->System Settings->tiny.custom_buttons1" and change this. It is not work. Old panel is shown. Also big with "tiny.custom_buttons{n}" and "tiny.custom_plugins"

      My temporary decide is: at file "\core\components\tinymce\tinymce.class.php" at line 126 i change
      if($theme == 'editor' || ($theme == 'custom' && (empty($this->config['plugins']) || empty($this->config['buttons1'])))) {

      into
      if(false && ($theme == 'editor' || ($theme == 'custom' && (empty($this->config['plugins']) || empty($this->config['buttons1']))))) {

      ...so i don’t know the right way to overcome this bug.

      2. Proposition of iprovement:
      add into "\assets\components\tinymce\jscripts\tiny_mce\themes\advanced\langs\" (and "simple") russian and other languages.
      As usual it can be download from http://tinymce.moxiecode.com/download_i18n.php

      3. May be, it’s a good idea:
      at file "\assets\components\tinymce\jscripts\tiny_mce\plugins\modxlink\link.htm" change lines 50,51
      <label><input type="radio" name="search-mode" value="pagetitle" checked="checked" onclick="changeSearchParams(this);" /> Pagetitle</label>
      <label><input type="radio" name="search-mode" value="alias" onclick="changeSearchParams(this);" /> Alias</label>

      into
      <label><input type="radio" name="search-mode" value="pagetitle" checked="checked" onclick="changeSearchParams(this);" />{#modxlink_dlg.pagetitle}</label>
      <label><input type="radio" name="search-mode" value="alias" onclick="changeSearchParams(this);" />{#modxlink_dlg.alias}</label>

      after that add this strings into "\assets\components\tinymce\jscripts\tiny_mce\plugins\modxlink\langs\en_dlg.js":
      pagetitle:"Pagetitle",
      alias:"Alias", // do not forget about comma!:)
      

      And, please, add a russia language (see link below)

      4. Please, add translations into "\assets\components\tinymce\jscripts\tiny_mce\plugins\PLUGIN_NAME\langs\" (see link below)

      5. It’s a some discomfort, when i want with plugin "modxlink" insert a link at the some document (not image) on the my web server. It is not a button Browse. So i recommend at file "\assets\components\tinymce\jscripts\tiny_mce\plugins\modxlink\js\modxlink.js" into line 44 add this line:
      document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','modxlink');


      6.I found a UI bug when TinyMCE is TV-parameter of Weblink. Please, see these images:



      ...finally. Here i prepeare an arhive, which contain all files to close 2,3,4,5 points. So it’s just need works under points 1 and 6.

      thank you!
        • 2035
        • 19 Posts
        And one question: how can i use "Template" plugin of TinyMCE. To use this plugin i should wrote, for example,
        var tinyMCETemplateList = [
        	// Name, URL, Description
        	["Simple snippet", "templates/snippet1.htm", "Simple HTML snippet."],
        	["Layout", "templates/layout1.htm", "HTML Layout."]
        ];

        at
        "\assets\components\tinymce\jscripts\tiny_mce\plugins\template\js\template.js"
        it works, but after future plugin’s update it’ll be erase. Is a right way exists?

        One more question: Any plugin (snippet) could have user’s Property Set. Using Property Set for snippets is clear. How i can use my Property Set with plugin (TinyMCE)?
        // yes, may be it isn’t the right topic for this question. sorry