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
I'm in the middle of converting a website to using Umbraco.
I have this in the html:
<u class="labelBlue"><a id="more2_en" onclick="return toggleMe('sect_faq_en', 'more2_en')">more</a>...</u>
But when I put it in Rich Text Editor, it becomes:
<span class="labelBlue" style="text-decoration: underline;"><a id="more2_en" onclick="return toggleMe('sect_faq_en', 'more2_en')"></a>more...</span>
The text 'more' is rendered outside of the <a></a>, causing the javascripting not working. Is it a rendering bug in Umbraco?
Hi David and welcome to our :)
What version of Umbraco are you using? Depending on the version Umbraco is using tidy to clean the entered markup and the <u> tag for instance is not allowed. And it could seem like it has a hard time cleaning it all properly.
Looking forward to hearing from you.
/Jan
Thanks Jan!
I'm using the latest version 6.02.
And I'm trying to change it to
<span class="labelBlue" style="text-decoration: underline;"><a id="more2_en" onclick="return toggleMe('sect_faq_en', 'more2_en')">more</a>...</span>
Okay I think it works now...
I think if the 'href' attribute is missing from the<a> tag, somehow the linked text is rendered outside of the tag....
Now this is working:
<span class="labelBlue" style="text-decoration: underline;"><a id="more2_en" href="#" onclick="return toggleMe('sect_faq_en', 'more2_en')">more</a>...</span>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Cannot render <a> tag properly in Rich Text Editor
I'm in the middle of converting a website to using Umbraco.
I have this in the html:
<u class="labelBlue"><a id="more2_en" onclick="return toggleMe('sect_faq_en', 'more2_en')">more</a>...</u>
But when I put it in Rich Text Editor, it becomes:
<span class="labelBlue" style="text-decoration: underline;"><a id="more2_en" onclick="return toggleMe('sect_faq_en', 'more2_en')"></a>more...</span>
The text 'more' is rendered outside of the <a></a>, causing the javascripting not working. Is it a rendering bug in Umbraco?
Hi David and welcome to our :)
What version of Umbraco are you using? Depending on the version Umbraco is using tidy to clean the entered markup and the <u> tag for instance is not allowed. And it could seem like it has a hard time cleaning it all properly.
Looking forward to hearing from you.
/Jan
Thanks Jan!
I'm using the latest version 6.02.
And I'm trying to change it to
<span class="labelBlue" style="text-decoration: underline;"><a id="more2_en" onclick="return toggleMe('sect_faq_en', 'more2_en')">more</a>...</span>
Okay I think it works now...
I think if the 'href' attribute is missing from the<a> tag, somehow the linked text is rendered outside of the tag....
Now this is working:
<span class="labelBlue" style="text-decoration: underline;"><a id="more2_en" href="#" onclick="return toggleMe('sect_faq_en', 'more2_en')">more</a>...</span>
is working on a reply...