How to disable elements selection and resizing in contenteditable div?

前端 未结 12 2382
被撕碎了的回忆
被撕碎了的回忆 2020-12-01 14:16

E.g. I have the following layout:

12条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 14:37

    I had the same problem. It appears that from previous posts here there are certain behaviors that IE recognizes and will add this paragraph focus/resize. For me it was because I had a style for paragraphs within the contenteditible div.

    Removing:

    div[contenteditble="true"] p{
       min-height:1em;
    }
    

    Fixed it for me.

提交回复
热议问题