Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Oct 30, 2020 @ 10:58
    Matt Taylor
    0

    Some characters are not recognised by the Rich Text TinyMCE Template feature

    In this post Marc figured out how to get the TinyMCE Template feature working in v8. #H5YR

    I've now created a template but by chance discovered that some characters are not recognised by the Template tool.

    Here's my template code

    <ul>
        <li>A single quote like this ' is fine</li>
        <li>A single quote like this ’ is not</li>
        <li>A dash like this - is fine</li>
        <li>A dash like this – is not</li>
    </ul>
    

    and here's the result!

    enter image description here

    Any idea how I can fix this?

    Thanks,

    Matt

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Oct 30, 2020 @ 11:29
    Marc Goodson
    1

    Hi Matt

    I suspect it's to do with Unicode and character sets - I wonder if you provide the entity references instead of the actual characters it would work?

    This is a useful reference for the scenario and entity codes here: https://www2.cs.sfu.ca/~ggbaker/reference/characters/#single

    so things like an en-dash - would have a html entity reference of &ndash; and a 'backtick' would have numeric reference &#96; (if it's a backtick you are after here)

    be interesting to see if it works anyway.

    regards

    Marc

  • Matt Taylor 873 posts 2086 karma points
    Oct 30, 2020 @ 12:45
    Matt Taylor
    0

    It does work Marc, well done.

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft