Support » Fixing WordPress » Visual/Test removes javaScript and tags

  • pawcio80

    (@pawcio80)


    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)
  • Moderator Andrew Nevins

    (@anevins)

    Forum moderator

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

    pawcio80

    (@pawcio80)

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

    Problem starts after upgrade to 3.9.1

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

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

    Moderator Andrew Nevins

    (@anevins)

    Forum moderator

    Or just use one tab at a time.

    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.

    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.