Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Shane 40 posts 193 karma points
    Jun 19, 2014 @ 14:15
    Shane
    0

    Making changes to Tinymce plugins

    Hi,

    I need to make some changes to the media picker plugin in Tinymce to give me more flexibility. I am making changes in the following folder.

    /Umbraco_Client/Tinymce3/Plugins/umbracoimg/

    The problem is that none of the changes I make are reflected in the editor. In fact, I can delete all the plugins from this folder, clear the cache and everything still works as nomal!

    Can anybody please shed some light on why this is and what I need to do to make these changes? I'm using version 7.1.3

    Edit:

    I've seen that the plugins also exist in:

    /Umbraco\lib/tinymce/plugins/umbracoimg/

    However, editing this also has absolutely no effect. Very confused...

  • Lucas Chasteen 24 posts 92 karma points
    Jun 19, 2014 @ 16:28
    Lucas Chasteen
    102

    In my tinkering you'll be fine making changes to the /umbraco/lib/tinymce folder, but you'll need to iterate the clientdependency.config value: 

    <clientDependency version="xxx" ... />

    and "tough" the web.config or restart the application.  This will have Umbraco reload the TinyMCE scripts.

     

     

     

     

     

     

  • Shane 40 posts 193 karma points
    Jun 21, 2014 @ 13:45
    Shane
    0

    Thanks very much Lucas. Changing the dependancy version did the trick.

  • Rune Antonsen 29 posts 145 karma points
    Apr 01, 2016 @ 10:02
    Rune Antonsen
    0

    Has this changed since the reply that has been marked as the answer?

    I'm trying to add, class="rte-image" to all images added through the editor.

    I've increased the version number on the clientDependency, and touched web.config AND restarted the application, but still this doesn't get added. Is there anything else I have to do to get this to work?

    I'm editing the line

    103:   ed.execCommand('mceInsertContent', false, '<img id="__mce_tmp" class="rte-image" />', { skip_undo: 1 });
    

    Am I doing it totally wrong?

Please Sign in or register to post replies

Write your reply to:

Draft