Skip to content

Style is not applied to variables #27

Description

@Misiu

I've prepared simple demo to show this issue: https://codepen.io/Misiu/pen/vxjQow

I have simple html:

<h1 style="text-align: center;">Hi {{user_name}}, have a nice day!</h1>
<h5 style="text-align: center;">Note, this is not an "enterprise/premium" demo.<br />Visit the <a href="https://www.tinymce.com/pricing/#demo-enterprise">pricing page</a> to demo our premium plugins.</h5>

that is displayed in editor like this:
snap 2017-03-23 at 14 02 24

after applying style (bold) to whole line I get this output:

<h1 style="text-align: center;"><strong>Hi </strong>{{user_name}}<strong>, have a nice day!</strong></h1>
<h5 style="text-align: center;">Note, this is not an "enterprise/premium" demo.<br />Visit the <a href="https://www.tinymce.com/pricing/#demo-enterprise">pricing page</a> to demo our premium plugins.</h5>

and in preview looks like this:
snap 2017-03-23 at 14 04 57

Here is recording showing my steps:
variables_plugin_bug1

As You can see variable in output isn't bolded. Ideally variable should be treated as normal text.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions