Forums

Help, code deleting!! (11 posts)

  1. pierrescottdesign
    Member
    Posted 1 year ago #

    Hi all, I'm having a serious issue with a site I'm working on. I have videos embedded in my pages, but whenever I go to edit the page and save the changes afterwards, the video code randomly disappears and thus the video disappears. I have no idea why this is happening. Can anyone help me? I've been trying to get help for this for weeks now.

    Thanks,

    PJ

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Are you switching between the Visual & HTML Editor tabs?

  3. pierrescottdesign
    Member
    Posted 1 year ago #

    yes i check both of them...it doesn't happen until I save the changes. Then the code for the video vanishes.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Don't switch between tabs. Pick one tab and then stick to it or you will lose markup.

  5. pierrescottdesign
    Member
    Posted 1 year ago #

    but why is that the case? is there something that can stop this? What if a user needs to switch to codeview to fix something?

  6. MadtownLems
    Member
    Posted 1 year ago #

    Is it <embed> code that's disappearing? If so, you're likely stripping it out for security reasons on save.

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    but why is that the case?

    Because, unfortunately, that's how TinyMCE (the Visual Editor) works.

  8. pierrescottdesign
    Member
    Posted 1 year ago #

    can I change the editor? is there a JCE editor like in Joomla?

  9. zfish
    Member
    Posted 1 year ago #

    Certain HTML tages do get stripped by the Visual Editor. Wish I knew which ones. My embedded Google map code is always affected.

    I found that I could switch back and forth between Visual and HTML as long as I submitted the update only in the HTML view.

  10. batten1000
    Member
    Posted 8 months ago #

    I'm having this same problem, except it's getting stripped when I click "save draft" by anyone other than an administrator. I'm not switching between views, i.e. i am in HTML view the whole time.

  11. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Please post a new topic.

Topic Closed

This topic has been closed to new replies.

About this Topic