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 861 posts 3844 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 3945 posts 15163 karma points MVP 10x 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 861 posts 3844 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.

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies