4

SDL WEB 8 Rich Text field still stick to HTML 4. Behind this field, WEB 8 use tidy html to format the HTML content. But based on http://www.html-tidy.org/, Tidy solution do support HTML 5, is it possible we just upgrade SDL WEB 8 tidy package version to get the HTML 5 support?

The main feature we expect here is let tag a can wrap tag div. Right now, if we input <a><div>test</div></a>, it will be auto format to <a></a><div>test</div>. We want to avoid this kind of format.

4

If it is possible, I doubt it would be supported because there could be dependencies inside the CME that aren't tested against the latest Tidy. However, IIRC, Tidy is not used by Tridion or Web. It is a custom implementation.

Also, very unofficially and not yet committed to the Web 9 release, is a new RTF editor on top of Textbox.io. This rumour has been started at the SDL India Meet 2017 last week. Again this is still early stages and not committed by SDL for the Web 9 release, but is certainly on the product roadmap for the near future.

  • The fact that SDL has considered rich text format area options is true. We haven't committed to a specific editor nor date, though, so thanks for qualifying any commitment for such a replacement. The RTF replacements, however, don't necessarily guarantee HTML5 support or a change in wrapping behavior. – Alvin Reyes Apr 6 '18 at 12:50
2

Currently SDL Web 8 indeed does not fully support HTML5, certainly from a Rich Text field standpoint.

See https://stackoverflow.com/questions/15263064/html5-tags-are-not-working-in-rtf-field-for-tridion-2011 for a few hints on how to get the majority of HTML5 features working, but you won't be able to support wrapping Block Level elements in an Anchor element.

Is there a specific reason why you need <a><div>...</div></a>, or could you simply get away with <a><span>...</span></a>?

  • It is a typical way we mark an entire block to be clickable. Most of the time we use DIV to wrap an block, which contains multiple paragraphs. SPAN couldn't handle this kind of user case. – qchen01 Mar 22 '17 at 12:54
  • @qchen01 not as clean as HTML5, but you could simply set display:block for the a and span tags, so they will behave the same as a div – Bart Koopman Mar 22 '17 at 13:29
  • Tried <a style="display:block"><div>test</div></a>, but still doesn't work. – qchen01 Mar 22 '17 at 14:01
  • No you can use <a style="display:block">...</a> which is equivalent to <a><div>...<div></a>, alternatively you could use: <a><span style="display:block">...</span></a> (and use classes with a CSS preferably ;o) – Bart Koopman Mar 22 '17 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.