extjs4 - Combined Draggable, Resizeable and Aloha Editor ExtJS component -


i trying create ext.component, can use draggable, resizable, float , aloha editor.

currently have tried:

afterrender: function(me) {     aloha.jquery('#' + me.myid).aloha();     document.getelementbyid(me.myid).setattribute("draggable", true); } 

this 1 doesn't allow draggable, edit works.

aloha.jquery('#' + me.myid).aloha(); draggable: true, resizeable: true, float: true 

this 1 allows re-sized , dragged around, aloha doesn't work, therefor not editable.

aloha.jquery('#' + me.myid).draggable(); aloha.jquery('#' + me.myid).aloha(); 

again 1 allows editing not dragging.

it seems moment handles come on resize or drag event aloha editor stops working, if there no handles drag , resize stop working. there advice, or has encountered before?

to solve this, did move handler, html5 style:

http://www.w3schools.com/html/html5_draganddrop.asp

and made main canvas drop area.

next added small div inside component editable.

and able make div aloha. default resizer works long make edges transparent.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -