删除contentEditable div上的调整大小处理程序 [英] Removing resize handlers on contentEditable div

查看:590
本文介绍了删除contentEditable div上的调整大小处理程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个contentEditable div用作丰富的textarea。它已经调整了我想要摆脱的周围的处理程序。任何想法我怎么做到这一点?编辑:这似乎发生,因为我绝对定位div,所以Firefox增加了真气_moz_resize属性的元素我无法关闭。



解决方案

看起来我可以通过添加一个wrapper div并绝对定位wrapper,然后使inner div contentEditable来解决这个问题。 / p>

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 appears to be happening because I am absolutely positioning the div, so Firefox adds an infuriating _moz_resize attribute to the element which I cannot turn off.

解决方案

It looks like I'll be able to work around this by adding a wrapper div and absolutely positioning the wrapper and then making the inner div contentEditable.

这篇关于删除contentEditable div上的调整大小处理程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆