Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi Hendy,
You might need to add a leading slash to the token? I know that localLink does that: /{localLink:1234}.
/{localLink:1234}
Cheers, - Lee
Hi Lee,
Thanks for that, yes, prefixing with a / prevents the href link from being manipulated.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
if the above is set via the source view, the RTE then changes it to:
(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
Hi Hendy,
You might need to add a leading slash to the token? I know that localLink does that:
/{localLink:1234}
.Cheers,
- Lee
Hi Lee,
Thanks for that, yes, prefixing with a / prevents the href link from being manipulated.
is working on a reply...