Here's how javascript includes look like on the page:
<script type="text/javascript" src="/static/js/jquery/jquery.js"></script>
<script type="text/javascript" src="/static/js/wymeditor/jquery.wymeditor.min.js"></script>
<script type="text/javascript" src="/static/js/wymeditor/plugins/embed/jquery.wymeditor.embed.js"></script>
<script type="text/javascript" src="/static/js/admin_textarea.js"></script>
The problem is that when I save the content within the iframe, it is removed.
UPDATE
Here is the content of admin_textarea.js
:
$(document).ready(function() {
$('head', document).append('<link rel="stylesheet" type="text/css" media="screen" href="/static/js/wymeditor/skins/minimal/skin.css" />');
$('head', document).append('<link rel="stylesheet" type="text/css" media="screen" href="/static/js/wymeditor/skins/minimal/skin.js" />');
$("textarea").wymeditor({
updateSelector: "input:submit",
updateEvent: "click",
lang: 'ru'
});
});
The embed plugin doesn't support iframes for versions prior to version 1.0.0a1. See the 1.0.0b1 changelog for details. You'll need to upgrade the version of your embed plugin.
That support was added with this commit, if you'd like to patch your version. Otherwise, you should be able to just replace your file with the latest version.