Copied to clipboard

Flag this post as spam?

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


  • Olly Berry 47 posts 68 karma points
    Jan 07, 2010 @ 12:07
    Olly Berry
    0

    Change macro render text in tinyMCE

    Hello,

    I've customised tinyMCE for one of my projects to include an "Insert Map" feature using the "Insert Macro" button which I've customised (lets the user select one of 3 map sizes, enter lat/longitude and it inserts a Google Maps iframe on the page). It's all good and working fine.

    My issue is that tinyMCE displays the standard

    This macro does not provides rendering in WYSIWYG editor

    I would like to change this text to something like

    Google Map - you cannot edit the map in the editor

    The problem is for the life of me, I can't find where this text comes from. I appreciate that changing it would in theory change the text for all macros, but the only ones I'm allowing are the map macros so that's fine.

    Where does this text come from and how can I change it?

    many thanks,


    Olly

     

  • Olly Berry 47 posts 68 karma points
    Jan 08, 2010 @ 09:39
    Olly Berry
    0

    Is this not possible then?

  • mfeola 117 posts 221 karma points
    May 11, 2010 @ 23:21
    mfeola
    0

    yeah i would like to change it as well... maybe put in the name of the macro and the information that was input?

  • mfeola 117 posts 221 karma points
    May 11, 2010 @ 23:24
    mfeola
    0

    http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=24457 

    i read in another post if people request it enough they will add it into a future release

  • Chris Dunn 210 posts 401 karma points
    May 12, 2010 @ 00:47
    Chris Dunn
    0

    On the properties of your macro in the developer section, check the 'Render content in editor'.  Not having this checked is where the default 'This macro does not provides rendering in WYSIWYG editor' comes from.

    In your page load of the usercontrol (assuming this is a usercontrol and not xslt macro).

    if(Page is UmbracoEnsuredPage)
    {
       // set your text to a label or placeholder to show design mode text.
       return;
    }

     

    Hope that helps.

    -Chris

  • mfeola 117 posts 221 karma points
    Jun 03, 2010 @ 21:54
    mfeola
    0

    oh i see what you are doing, basically make two panels, one that is normal and containing your code and another that just has the label text you want to appear on the macro, and just hiding and showing the right panels at the right times?

  • Chris Dunn 210 posts 401 karma points
    Jun 03, 2010 @ 21:56
    Chris Dunn
    0

    Correct....Design time view vs runtime view. :)

     

  • Chriztian Steinmeier 2798 posts 8788 karma points MVP 7x admin c-trib
    Jun 03, 2010 @ 23:24
  • Olly Berry 47 posts 68 karma points
    Jun 17, 2010 @ 22:04
    Olly Berry
    0

    Thanks all : )

Please Sign in or register to post replies

Write your reply to:

Draft