On the left is a list of elements. The Text/Markup inside these elements is manually provided, and not read from the data-editable-content attribute. This causes different text after the element is added to the canvas.
Fix: Render the data-editable-content value to text, on initialization, for the elements in the left-side list of elements-to-add.
expose a "renderTo" (or so) function in the custom jqueryUI editing plugin.
borrow the method $.mock.editText.prototype._leaveEditMode before actually initializing the plugin (?)
Borrowing a method from a jqueryUI plugin seems to be a great idea
I could try to initialize the function on the element in the sidebar and that activate the actual editing function when adding the dragged clone to the canvas.
On the left is a list of elements. The Text/Markup inside these elements is manually provided, and not read from the
data-editable-content
attribute. This causes different text after the element is added to the canvas.Fix: Render the
data-editable-content
value to text, on initialization, for the elements in the left-side list of elements-to-add.$.mock.editText.prototype._leaveEditMode
before actually initializing the plugin (?)