[Elgg 1.7: Extended TinyMCE] vr3

Release Notes


  • Upgraded to version 3.4.3 of the TinyMCE editor.
  • Switched to Elgg's default font as font used in the editor area (actually a fix that will be included also in the upcoming Elgg 1.7.10 to increase the font size to a "normal" size - thanks Cash).
  • Removed some font options in the editor initialization. Font size selection now works also on Opera browser.

Install instructions:

  1. Disable the Elgg core tinymce plugin and/or any other tinymce plugins,
  2. Replace the tinymce folder in your mod directory with this tinymce folder,
  3. Enable the tinymce plugin again,
  4. Execute the upgrade.php script, i.e. call http://<yoursite.domain>/upgrade.php in your browser.
  • Hi there,

    I installed this locally and tested it on Elgg 1.7.9 and various browsers on Windows 7.

    When I click 'Insert' the box clears the fields in the dialogue box rather than insert the image, which is a new issue. However, when I cancel and click 'HTML' I see, <p><img border="0" /></p>, which is the same as the previous version. It is possible to select the blank area in the input box where the image should be, the image button changes (to indicate an image is present for editing) and the link can be re-pasted in the dialogue box again.

    Strange things are afoot.


  • Ah, yes, for inserting images.

  • @Lee: this time I could verify your issue (Linux, FF4). I need to figure out if it's a bug in the TinyMCE editor (either a new one or the fix of the old bug made it worse) or if it's caused by initialization of the editor in Elgg. I'll inform you about the outcome of the testing.

  • @Lee:

    It seems it's really a bug in TinyMCE:


    The solution seems to be to make some changes in the extended_valid_elements parameter list at initializing the editor. In the file /views/default/input/longtext.php line 43 make the following modification:


    extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],embed[src|type|wmode|width|height],object[classid|clsid|codebase|width|height],font[face|size|color|style],span[class|align|style],style[lang|media|title|type]"


    extended_valid_elements : "@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|style],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style],embed[src|type|wmode|width|height],object[classid|clsid|codebase|width|height],font[face|size|color|style],span[class|align|style],style[lang|media|title|type]",

    I.E. add


    to the valid element list.

    I'll upload a new version soon. Version of the editor has also been released, but this issue isn't fixed, so I'll fix it before uploading.


  • @iionly can you also update the manifest and not just the readme.txt in your next release? Just becuase you are tweaking a core plugin with this fix it makes it easier to spot the difference rather than looking at timestamps :-)

  • Hi, I'm having some problem with unordered list and indent. It doesn't save the changes I do. This is what is happening:



  • @iionly, thank you for the information. I'll make teh suggested changes tomorrow. Thanks.

  • @Lee: new version with fix included and version will be available today, too.

    @Pedro Maia: this is caused by the htmlawed plugin. It won't allow nested lists. With htmlawed disabled it should work, but that's not good either due to possible security issues. I'm not sure if the htmlawed plugin can be configured to allow for nested lists unfortunately.

    @James Dellow: new release will include version number in manifest.xml.


  • Category: Tools
  • License: GNU General Public License (GPL) version 2
  • Updated: 2015-5-15
  • Downloads: 8420
  • Recommendations: 13

Other Projects

View iionly's plugins