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?
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.
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?
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
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
Is this not possible then?
yeah i would like to change it as well... maybe put in the name of the macro and the information that was input?
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
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).
// set your text to a label or placeholder to show design mode text.
return;
Hope that helps.
-Chris
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?
Correct....Design time view vs runtime view. :)
Hi Olly (and others),
Take a look here: http://our.umbraco.org/forum/developers/xslt/5584-having-the-default-macro-message--in-WYSIWYG-contain-the-name-of-the-macro-it's-displaying
/Chriztian
Thanks all : )
is working on a reply...