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
Are you switching between the Visual & HTML Editor tabs?
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.
Don't switch between tabs. Pick one tab and then stick to it or you will lose markup.
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?
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.
but why is that the case?
Because, unfortunately, that's how TinyMCE (the Visual Editor) works.
pierrescottdesign
Member
Posted 1 year ago #
can I change the editor? is there a JCE editor like in Joomla?
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.
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.