I am very recently having an issue with tinymce adding div tags into everything it's enabled on. This is entering a lot of characters into our database that is not necessary and sometimes it exceeds the maximum characters, and will not allow users to enter information.
The information being entered is:
important test <div id="mouseposition-extension-element-full-container" style="position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px; pointer-events: none; z-index: 2147483647; font-weight: 400;"> <div id="mouseposition-extension-element-rect-display" style="display: none; position: absolute; background: rgba(255, 255, 255, 0.7); outline: black solid 1px; font-size: 12px; z-index: 2147483647; justify-content: center; align-items: center; user-select: none; cursor: default; color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; width: 0px; height: 0px;"> <pre style="flex: 1 1 0%; text-align: center; background-color: rgba(255, 255, 255, 0.7); color: #000000; min-width: 42px; min-height: 12px; transition: all 1s ease 0s;"> </pre> </div> <pre id="mouseposition-extension-element-coordinate-display" style="position: absolute; display: none; background: #ffffff; font-size: 12px; line-height: 14px; border-radius: 3px; border-width: 1px; border-color: #222222 black #333333; border-style: solid; padding: 3px; z-index: 2147483647; color: #222222; user-select: none; cursor: default; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"> </pre> </div>
This is a very recent issue, and to my knowledge no changes were made to the site. This is happening on every page tinymce is enabled, and it started sometime recently, as in the past hour. User's were entering things fine, and the next minute I'm getting calls about it not working. My question is how do I remove this div tag? I feel it is also important to note that on tinymce if I view the source code, an option available on the editor itself, that it does show all of that div information.
My tinymce initialization is:
<script type="text/javascript">
tinymce.init({
mode : "textareas",
force_br_newlines : false,
force_p_newlines : false,
forced_root_block : false,
selector: 'textarea',
plugins: [
"advlist autolink lists charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime contextmenu paste save"
],
toolbar: "bullist numlist",
statusbar: false,
setup: function (ed) {
ed.on('change', function () {
ed.save();
});
}
});
</script>
Which again, has worked fine until very recently. I use the same initialization on the few pages that use it.
The picture is of the source code, as viewed from the toolbar of tinymce. The important test text at the top is what I have entered into the text area. tinymce editor source code