WordPress.org

Forums

Visual/Test removes javaScript and tags (7 posts)

  1. pawcio80
    Member
    Posted 9 months ago #

    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 ?

  2. Andrew
    Forum moderator
    Posted 9 months ago #

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

  3. pawcio80
    Member
    Posted 9 months ago #

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

    Problem starts after upgrade to 3.9.1

  4. Andrew
    Forum moderator
    Posted 9 months ago #

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

  5. Andrew
    Forum moderator
    Posted 9 months ago #

    Or just use one tab at a time.

  6. pawcio80
    Member
    Posted 9 months ago #

    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.

  7. pawcio80
    Member
    Posted 9 months ago #

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

Reply

You must log in to post.

About this Topic