I need to give the ability for the content editor to provide a text area on the page with raw html like this:
<a href="http://blah.html">Link Text</a>
The text area has an onclick hooked to auto select the text so that visitors can link to the page in their own site. I have read the thread using the Code Block style but I don't think that will help me.
Anyone have an idea how I might get this to work? I am currently trying to use a macro, but I can't seem to get that working either.
The content editor will now have access to the document type to change its control type, and the content editor will not necessarily be versed in html.
If you need to give the editor the opportunity to write raw HTML I recommend you use a multiple textbox property on your document type.
They will not be able to benefit from using the "insert link" or "insert image" options though.
To fetch the code from the textbox you just need to make sure you write <xsl:value-of select="yourpropertyname" disable-outout-escaping="yes" /> in your macro.
RTE textarea and raw html not a code block
Hello,
I need to give the ability for the content editor to provide a text area on the page with raw html like this:
<a href="http://blah.html">Link Text</a>
The text area has an onclick hooked to auto select the text so that visitors can link to the page in their own site. I have read the thread using the Code Block style but I don't think that will help me.
Anyone have an idea how I might get this to work? I am currently trying to use a macro, but I can't seem to get that working either.
The content editor will now have access to the document type to change its control type, and the content editor will not necessarily be versed in html.
Thanks.
Hi radmanmm
If you need to give the editor the opportunity to write raw HTML I recommend you use a multiple textbox property on your document type.
They will not be able to benefit from using the "insert link" or "insert image" options though.
To fetch the code from the textbox you just need to make sure you write <xsl:value-of select="yourpropertyname" disable-outout-escaping="yes" /> in your macro.
Hope these guidelines are helpfull.
/Jan
try creating a template for the rte , this post might help
http://our.umbraco.org/wiki/how-tos/enabling-the-%27template%27-plugin-for-tinymce
is working on a reply...