Removing resize handlers on contentEditable div

前端 未结 7 2040
一整个雨季
一整个雨季 2020-12-06 02:46

I created a contentEditable div to use as a rich textarea. It has resize handlers around it that I\'d like to get rid of. Any idea how I\'d do this?

Edit: This app

7条回答
  •  被撕碎了的回忆
    2020-12-06 03:32

    Just as a side note, you can disable Firefox's automatic resize handle feature by sending the (somewhat poorly-documented) enableObjectResizing command to the document:

    document.execCommand("enableObjectResizing", false, false);
    

    AFAIK, this can only safely be done once the document has loaded, and there's no way I know of to disable the grabber, which is a separate feature.

提交回复
热议问题