• After update to 3.9.1 wordpress removes tags while switch Visual/Text mode.
    I have following code in my page:
    Before switch:
    …..
    <div class=”ddHeader” onclick=”scroolEfect(‘driftsbygning-dds4’,this);”></div>
    ….
    <link href=”/styles/style.css” rel=”stylesheet” media=”screen” type=”text/css” />
    ….

    After clicking Visual and again Text mode:
    ….
    <div class=”ddHeader”><div>
    ….
     
    ….

    There is no script and <link> tag.
    How to turn off this 3.9.1 feature ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Switching tabs always strips tags, you can’t turn that off. Just stick to one tab.

    Thread Starter pawcio80

    (@pawcio80)

    Under wordpress 3.8 switching tabs has no impact on my code.

    Problem starts after upgrade to 3.9.1

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    With your specific example, have you considered enqueing your stylesheets/ scripts? This problem doesn’t exist if you do things properly.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Or just use one tab at a time.

    Thread Starter pawcio80

    (@pawcio80)

    For now I want to avoid changing my pages (i have about 100 page – that would be a lot of work :)). But if there will not be a simple solution (wordpress plugin or hack) i will have to do this in hard way.

    Thread Starter pawcio80

    (@pawcio80)

    I could turn of visual tab in options but I need two tabs with possibility of switching

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Visual/Test removes javaScript and tags’ is closed to new replies.