admin管理员组文章数量:1344197
I'm trying to have the ability to have resizable images in a contenteditor div in Chrome, like Firefox does. When you click on an image, the resize handlers should appear. I tried the jQuery UI resizable plugin, but it bees broken when you move (drag and drop) the images inside the container. Also tried the CSS3 resize property, but it only applies to block elements, not Any suggestion? Thanks
I'm trying to have the ability to have resizable images in a contenteditor div in Chrome, like Firefox does. When you click on an image, the resize handlers should appear. I tried the jQuery UI resizable plugin, but it bees broken when you move (drag and drop) the images inside the container. Also tried the CSS3 resize property, but it only applies to block elements, not Any suggestion? Thanks
Share Improve this question asked Nov 7, 2011 at 18:31 maza23maza23 5551 gold badge5 silver badges16 bronze badges2 Answers
Reset to default 5WebKit has no support for resizing images and tables within editable elements, unfortunately.
- https://bugs.webkit/show_bug.cgi?id=7154
- https://bugs.webkit/show_bug.cgi?id=12250
That being the case, you're going to have to use some other means, such adding a click event handler to the editable element and drawing resizer elements around the image, if one was clicked. Seeing as the big editors (TinyMCE and CKEditor) haven't implemented it, I assume there are plications.
WebKit doesn’t support resizing images and tables. However it is possible to fix this by implementing resize functionality by using javascript. There is no big difference between manipulating with javascript an image and an image in an editable iframe. There is an open source jquery plugin that is implementing this http://www.editorboost/webkitresize This plugin also supports table cell resize.
本文标签: javascriptWebkit live images resize in contenteditable containerStack Overflow
版权声明:本文标题:javascript - Webkit: live images resize in contenteditable container - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743746236a2531806.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论