Copied to clipboard

Flag this post as spam?

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


  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Jan 29, 2015 @ 11:37
    Hendy Racher
    0

    Umbraco 7 Rich Text Editor Manipulating <a href="" />

    Hi,

    It is possible to prevent the Rich Text Editor from manipulating href links by prefixing them with  '/umbraco/' ?

    We want to use a token in our links such that it can be replaced at runtime, eg:

    <a href="[% LINK_TO_CUSTOM_URL %]">link</a>

    if the above is set via the source view, the RTE then changes it to:

    <a href="/umbraco/[% LINK_TO_CUSTOM_URL %]">link</a>

    (There isn't a <TidyEditorContent> option in the umbracoSettings.config and <config key="relative_urls">false</config> in the tinyMceConfig.config had no effect) 

    TIA,

    Hendy

  • Lee Kelleher 4024 posts 15833 karma points MVP 13x admin c-trib
    Jan 29, 2015 @ 12:06
    Lee Kelleher
    100

    Hi Hendy,

    You might need to add a leading slash to the token? I know that localLink does that: /{localLink:1234}.

    Cheers,
    - Lee

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Jan 29, 2015 @ 12:56
    Hendy Racher
    0

    Hi Lee, 

    Thanks for that, yes, prefixing with a / prevents the href link from being manipulated.

     

Please Sign in or register to post replies

Write your reply to:

Draft