Pregunta

I have a YouTube video embedded on a page in ModX. To place it, on the Page I switch TinyMCE off to reveal the HTML code then paste the iframe in. That works Ok but when I go back to edit something else in HTML mode the iframe code disappears.

Anyone know whats going on?

¿Fue útil?

Solución

TinyMce is encoding some of the characters in your youtube code for you... it honestly thinks it is being helpful ;) . You have 3 options:

  1. Reference the tinymce documentation, there are some options to tell it which characters not to encode. [sorry, don't remember offhand what they are]

  2. turn off "rich text" on the particular resource you are trying to include the video in.

  3. place your video code in a chunk & reference that chunk in your resource instead of the actual code. [probably your best bet]

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top