Trying to integrate Jeditable+MarkItUp and Thickbox/Lightbox
- by Bob Sawyer
I've managed to successfully integrate MarkItUp with Jeditable based on the instructions on those two sites. What I would really like to do, however, is to have the Jeditable/MarkItUp editing window appear in a Thickbox or Lightbox overlay. So far my attempts to do this have not been successful.
So, at the moment, I have the standard code:
$.editable.addInputType('markitup', {
element : $.editable.types.textarea.element,
plugin : function(settings, original) {
$('textarea', this).markItUp(settings.markitup);
}
});
$(".editme").editable("/content/save", {
event : 'dblclick',
type : 'markitup',
submit : 'OK',
cancel : 'Cancel',
width : 640,
height : 'auto',
tooltip : 'Double-click to edit...',
onblur : 'ignore',
markitup : mySettings
});
I've found other posts here that show how to trigger the edit box by clicking on a link rather than the object itself, and I've tried integrating that with the Thickbox calls, to no avail.
Would appreciate anyone pointing me in the right direction. Thanks!