| Page 1 of 1 | [ 1 post ] |
|
Is it possible to allow images inserted into the editor to be resized by the user in the editor? I tried combining it with the resize plugin, but I was unable to do so :/
Code: //global variable insertedImageCount exists editor.execCommand('inserthtml', '<img src="' + fileName + '" id="yui-inserted-image'+insertedImageCount+'" />'); YUI().use('resize', function(Y) { var resize = new Y.Resize({ node: '#yui-inserted-image'+insertedImageCount }); }); insertedImageCount++; Is this because the editor is in an iframe and maybe it cannot find #yui-inserted-imageX? What's a workaround here? |
| Page 1 of 1 | [ 1 post ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group