Update: After posting on the TinyMCE forum (something I had to do before offering generosity) the primary problem can be resolved, but I'm still very open to anything regarding other issues related to disabling resizable behavior (numbers 2 and 3 at the end of the message).
I have a problem saving content with TinyMCE in IE8 (not in other versions). In IE, some elements in the editor have handles in each corner and draggable βbordersβ, and when you focus to start editing, a striped border may appear:

Problem:
If I submit the form while the thick border is still visible (state 3 in the image), the form will not save the contents. I have to click in another area of ββthe editor so that all borders disappear, and then submit the form.
I am using jQuery TinyMCE 3.4.6 package, I do not get this behavior in other browsers.
Update:
I narrowed down the cause of the problem a bit and found a few things:
- The problem arises with or without jQuery assembly and does not depend on which tinymce plugins are used.
- A thicker βborderβ appears only if there is (min-) height / width applied to the element, either declared inline or external CSS.
Using IETester , I got errors that require 'length' is null or not an object when focus from the active element is lost; those. when you click anywhere outside the TinyMCE editor.

I did not see this error in a genuine installation of IE8 (something that I canβt get right now), however this makes some sense, given the problem and workaround outlined above. I had to send the application twice and reject the warnings in order to receive the form for publication in IETester.
- These boundaries and descriptors will actually go beyond the / iframe editor:

I created a live demo of bare-bones , here is its content:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script type="text/javascript" src="tiny_mce/jquery.tinymce.js"></script> <script type="text/javascript"> $(function() { $('textarea.tinymce').tinymce({ script_url : 'tiny_mce/tiny_mce.js', content_css : 'test.css' }); }); </script> <form action="" method="post"> <textarea class="tinymce" name="content"><p>Testing</p></textarea> <button type="submit">Submit</button> </form> /* Content of test.css */ p { min-height: 24px; /* this line makes the handles appear */ background-color: #f00; color: #fff; }
How to reproduce:
- Open demo in IE8
- Click on an existing paragraph, a small 1px border will appear, and you will not be able to edit the text.
- Click the item again, a thick frame will now appear, and the text can be edited.
- Enter a few characters, then click the submit button. An update will not be sent with
$_POST data. If you want to click another area inside the editor, removing the thick border, the data will be sent normally.
Questions / problems:
Important: How can I get a form for publishing edited text without requiring a workaround from the user?
Update:. This seems to be allowed in a recent commit from TinyMCE lead developer. I still could not test the actual installation of IE8, but it worked and silenced the errors in IETester.
Less important: Is there a way to prevent or remove handles and draggable edges completely? I assume that this is a problem with the implementation of IE contentEditable and not so much TinyMCE, and cannot even be the cause of the problem.
- Extra . How can I prevent these descriptors from being distributed outside the editor?
Wesley murch
source share