src/processSection.js
function onEdit() {
        var editor;
        if (o.wysiwyg && $('#' + uniqueId).find('.wk-container').length === 0) {
          // insert rich editor
          var editorOptions = o.editorOptions || {};
          editorOptions.textarea = $('#' + uniqueId + ' textarea')[0];
          editorOptions.tagsModule = (editorOptions.tagsModule === true); // disable this to not require Bloodhound, unless overridden
          editor = new PL.Editor(editorOptions);
        }
        _form.find('.cancel').click(function inlineEditCancelClick(e) {
          e.preventDefault();
          _form.hide();
        });
        _form.find('button.submit').click(function(e) {
          prepareAndSendSectionForm(e, _form, editor, originalSectionMarkdown);
        });
      }
function onEdit() {
        var editor;
        if (o.wysiwyg && $('#' + uniqueId).find('.wk-container').length === 0) {
          // insert rich editor
          var editorOptions = o.editorOptions || {};
          editorOptions.textarea = $('#' + uniqueId + ' textarea')[0];
          editorOptions.tagsModule = (editorOptions.tagsModule === true); // disable this to not require Bloodhound, unless overridden
          editor = new PL.Editor(editorOptions);
        }
        _form.find('.cancel').click(function inlineEditCancelClick(e) {
          e.preventDefault();
          _form.hide();
        });
        _form.find('button.submit').click(function(e) {
          prepareAndSendSectionForm(e, _form, editor, originalSectionMarkdown);
        });
      }
function onEdit ( ) { var editor ; if ( o . wysiwyg && $ ( '#' + uniqueId ) . find ( '.wk-container' ) . length === 0 ) { // insert rich editor var editorOptions = o . editorOptions || { } ; editorOptions . textarea = $ ( '#' + uniqueId + ' textarea' ) [ 0 ] ; editorOptions . tagsModule = ( editorOptions . tagsModule === true ) ; // disable this to not require Bloodhound, unless overridden editor = new PL . Editor ( editorOptions ) ; } _form . find ( '.cancel' ) . click ( function inlineEditCancelClick ( e ) { e . preventDefault ( ) ; _form . hide ( ) ; } ) ; _form . find ( 'button.submit' ) . click ( function ( e ) { prepareAndSendSectionForm ( e , _form , editor , originalSectionMarkdown ) ; } ) ; }
plan for swappable editors; will need to specify both constructor and onEditorSubmit
plan for swappable editors ; will need to specify both constructor and onEditorSubmit