• Resolved chando6000

    (@chando6000)


    Hi

    i am currently experiencing the problem where any code i insert into the text editor gets altered or deleted if i click on the update button or go back and forth between the text and visual editor. why does this happen and is there a way to fix this?

    Thank you in advance

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello, @chando6000

    Try switching to the Twenty* theme to rule-out a theme-specific issue.

    If that does not resolve the issue, try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    Thanks.

    Thread Starter chando6000

    (@chando6000)

    hi, @wbcomdesigns

    i tried changing the theme and deactivating all the plugins but unfortunately it did not resolve my issue, the editor is still altering my code is there something else i can try?

    thank you.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    or go back and forth between the text and visual editor.

    That is normal WordPress behaviour. The editors were never meant to be switched between. If you’re trying to preview your code then use the “Preview” button.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter chando6000

    (@chando6000)

    Hi @anevins

    unfortunately the plugin does not work. what is happening is that i am trying to open a link in a new window (not tab) i have the code to do this and it works perfectly if i click on the preview changes button, but right after i hit the update button it loads the page with the visual editor active or open. do you think that disabling the visual editor will solve this issue but on the other hand some of the people that work on the same site don’t do code and i will be making the world a very difficult place for them

    thanks in advance

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Oh I see, what code are you using specifically? Can you post that here on the forums? Remember to wrap your code in backticks here or the forum will break the formatting.

    Thread Starter chando6000

    (@chando6000)

    this is the code i am using. I also found a site that automatically generates a pop up window code for you. i tried the generated code as well and it did the same thing.

    <a href="print.html" onclick="window.open('print.html', 'newwindow', 'width=700,height=700'); return false;"> Print</a>

    thanks.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter chando6000

    (@chando6000)

    this plugin works perfectly thanks for the help @anevins. just what i was looking for.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘altered or deleted code in text editor’ is closed to new replies.