However, I would now need the Rich Text Editor as Macro parameter type and don't know where to start. I mean the Assembly for the editor is certainly already existing in Umbraco but I don't know which one it is.
For Umbraco 7 you'll need to create a new property editor, which is based on AngularJs. Then you can tell your manifest that the property editor should be used as a macro parameter, which you can read about in the Umbraco Angular Workbook here https://github.com/umbraco/AngularWorkbook/blob/master/Exercises/Exercise10.md
You can also learn about creating and using property editors by going through the whole book - But that specific page I referenced is where the magic happens as to how you can use the property editor as a macro parameter.
@Evelyne: Sorry that I don't have a reply for your scenario.
Unfortunately I don't - But I assume that in your code you call it by the proper name and the example above is just a spelling error, right? :) It should be umbracoPage.Init.
But perhaps you can show us some code and explain a bit about it? That might make it easier for others to provide suggestions.
Rich Text Editor as custom Macro Parameter type
I've successfully created macro parameter types by following informations on this, in the past:
http://www.richardsoeteman.net/2010/01/04/CreateACustomMacroParameterType.aspx ;
However, I would now need the Rich Text Editor as Macro parameter type and don't know where to start. I mean the Assembly for the editor is certainly already existing in Umbraco but I don't know which one it is.
Has anyone already tried this ?
Thanks,
Note: Umbraco 4.7
Hello,
Same here, but running on 7.
Any news?
Hi Julien and welcome to our :)
For Umbraco 7 you'll need to create a new property editor, which is based on AngularJs. Then you can tell your manifest that the property editor should be used as a macro parameter, which you can read about in the Umbraco Angular Workbook here https://github.com/umbraco/AngularWorkbook/blob/master/Exercises/Exercise10.md
You can also learn about creating and using property editors by going through the whole book - But that specific page I referenced is where the magic happens as to how you can use the property editor as a macro parameter.
@Evelyne: Sorry that I don't have a reply for your scenario.
/Jan
Thanks @Jan,
thanks, that got me on the right path. I am trying to do the same thing with ace editor but in the backoffice.
I created my custom tree and all but I cannot get the dependencyManager to inject my third party JS and CSS in my plugin...
umbracoPage.Init is never hit...
I know thats another kind of fish all together but I was hopping you might have a solution...
do you?
thanks
PS: still usng V7
Hi Julien
Unfortunately I don't - But I assume that in your code you call it by the proper name and the example above is just a spelling error, right? :) It should be umbracoPage.Init.
But perhaps you can show us some code and explain a bit about it? That might make it easier for others to provide suggestions.
/Jan
Thanks Jan,
Yes, thats just a typo in the post, VS would not let me get away with this....
I edited. and openned a post for that matter.
I made one for 7. Check out how here http://lindsayjopson.com/using-an-rte-as-a-macro-parameter-in-umbraco-7/
I've tried this in the latest version of Umbraco (7.3.5) and get a console error
Cannot read property 'height' of undefined
Could you possibly shed some light?
Can you please share the code
Awesome thanks Lindsay, that works a charm. I had to add some things to the editor toolbar but that's easy with TinyMCE.
http://www.tinymce.com/wiki.php/Configuration:toolbar
Appreciate the help.
That's awesome Lindsay!.. :D
Guys
Where is the code ? I want the same but don't know where to start.
Manish
Here is the solution
https://our.umbraco.org/forum/templates-partial-views-and-macros/82089-tinymce-as-macro-parameter
Manish
is working on a reply...