I have a plugin in Wordpress that uses jQuery Resizable to resize the dialog in TinyMCE. A This is outputted This is the resizable handle output: I tried and did not work for these two jQuery functions: to check your DIV through orbit Add an onMouseDown handler. If the right DIV is being clicked, you will need to address the body element of the editor. It started to find me forever! Enjoy and
and
& lt; Div class = "ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonally-to-UI-icon-hold-diagonal" & gt; & Lt; / Div & gt;
$ ('.ui-dialog'). Resizable ('destroyed'); $ ('. Ui-resizable-handle') resizable ('deleted')
ed.onMouseDown.add (function (ed, e) {var body = ed.getBody (); if (jQuery (e.target) .hasClass ('someclass')) {JQuery (body) .attr ({'contenteditable': false}) Other {jQuery (body) .attr ({'contenteditable': true}}}})
No comments:
Post a Comment