E.g. I have the following layout:
<div contenteditable="true">
<span class="text-block" contenteditable="false">
<span contenteditable="false">Name</span>
<a href="javascript:void(0)">
<i class="small-icon-remove"></i>
</a>
</span>
</div>
So, how to disable this:
and this:
This post was critical when solving this issue for me (works in tinyMCE):
How to Remove Resize handles and border of div with contentEditable and size style
By placing a contenteditable DIV within a non contenteditable DIV the handles do not appear in IE or FF but you can still edit the content
Ex.
To disable the resize handles, all I had to do was add the following for IE11:
For firefox executing this line after the contenteditable element has been inserted works:
I had the same problem because I put CSS rules for the max-width onto all child elements within the contenteditable. Removing it or restricting it to images did the trick.
Make sure that no
<p>
elements are affected by the max-width property.SOLVED! On placing the non content-editable span within a content-editable BODY, it started showing a resize-able SPAN container. What just fix my problem was a simple one-liner CSS style pointer-events: none; on the inner SPAN tag.
"overflow: hidden;" also can cause this issue, like:
Nothing anyone else recommended here or in other threads really worked for me, but I solved it by doing:
This way the resize boxes disappeared, but I could still set my cursor below or in the P blocks to edit them.