Copied to clipboard

Flag this post as spam?

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


  • radmanmm 117 posts 108 karma points
    Mar 25, 2011 @ 04:27
    radmanmm
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 25, 2011 @ 07:09
    Jan Skovgaard
    0

    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

  • Anthony 5 posts 25 karma points
    Mar 25, 2011 @ 13:42
    Anthony
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft