$mpModalInit.call(self, title, content, width, callback);
};
+ var $mpImageResizeControls = this.imageResizeControls;
+ this.imageResizeControls = function(image) {
+ return $mpImageResizeControls.call(self, image).hide();
+ };
+
this.setOption('modalOpenedCallback', $.proxy(this.modalOpenedCallback, this));
this.modalTemplatesInit();
+ '<dt><label for="redactor_file_link">' + this.opts.curLang.image_web_link + '</label></dt>'
+ '<dd><input type="text" name="redactor_file_link" id="redactor_file_link" class="long" /></dd>'
+ '</dl>'
+ + '<dl>'
+ + '<dt><label for="redactor_form_image_align">' + this.opts.curLang.image_position + '</label></dt>'
+ + '<dd>'
+ + '<select id="redactor_form_image_align">'
+ + '<option value="none">' + this.opts.curLang.none + '</option>'
+ + '<option value="left">' + this.opts.curLang.left + '</option>'
+ + '<option value="right">' + this.opts.curLang.right + '</option>'
+ + '</select>'
+ + '</dd>'
+ + '</dl>'
+ '</fieldset>'
+ '<div class="formSubmit">'
+ '<button id="redactor_upload_btn">' + this.opts.curLang.insert + '</button>'
+ '</div>'
);
+ this.setOption('modal_image_edit', this.getOption('modal_image').replace(
+ '<button id="redactor_upload_btn">' + this.opts.curLang.insert + '</button>',
+ '<button id="redactorSaveBtn">' + this.opts.curLang.save + '</button>'
+ ));
+
+ this.setOption('modal_link',
+ '<fieldset>'
+ + '<dl>'
+ + '<dt><label for="redactor_link_url">URL</label></dt>'
+ + '<dd><input type="text" id="redactor_link_url" class="long" /></dd>'
+ + '</dl>'
+ + '<dl>'
+ + '<dt><label for="redactor_link_url_text">' + this.opts.curLang.text + '</label></dt>'
+ + '<dd><input type="text" id="redactor_link_url_text" class="long" /></dd>'
+ + '</dl>'
+ + '</fieldset>'
+ + '<div class="formSubmit">'
+ + '<button id="redactor_insert_link_btn">' + this.opts.curLang.insert + '</button>'
+ + '</div>'
+ );
+
this.setOption('modal_table',
'<fieldset>'
+ '<dl>'
+ '</div>'
+ '</form>'
+ '</section>',
-
- modal_image_edit: String()
- + '<section id="redactor-modal-image-edit">'
- + '<label>' + this.opts.curLang.title + '</label>'
- + '<input type="text" id="redactor_file_alt" class="redactor_input" />'
- + '<label>' + this.opts.curLang.link + '</label>'
- + '<input type="text" id="redactor_file_link" class="redactor_input" />'
- + '<label><input type="checkbox" id="redactor_link_blank"> ' + this.opts.curLang.link_new_tab + '</label>'
- + '<label>' + this.opts.curLang.image_position + '</label>'
- + '<select id="redactor_form_image_align">'
- + '<option value="none">' + this.opts.curLang.none + '</option>'
- + '<option value="left">' + this.opts.curLang.left + '</option>'
- + '<option value="center">' + this.opts.curLang.center + '</option>'
- + '<option value="right">' + this.opts.curLang.right + '</option>'
- + '</select>'
- + '</section>'
- + '<footer>'
- + '<button id="redactor_image_delete_btn" class="redactor_modal_btn redactor_modal_delete_btn">' + this.opts.curLang._delete + '</button>'
- + '<button class="redactor_modal_btn redactor_btn_modal_close">' + this.opts.curLang.cancel + '</button>'
- + '<button id="redactorSaveBtn" class="redactor_modal_btn redactor_modal_action_btn">' + this.opts.curLang.save + '</button>'
- + '</footer>',
-
+ // img edit
+
// img
- modal_link: String()
- + '<section id="redactor-modal-link-insert">'
- + '<label>URL</label>'
- + '<input type="text" class="redactor_input" id="redactor_link_url" />'
- + '<label>' + this.opts.curLang.text + '</label>'
- + '<input type="text" class="redactor_input" id="redactor_link_url_text" />'
- + '<label><input type="checkbox" id="redactor_link_blank"> ' + this.opts.curLang.link_new_tab + '</label>'
- + '</section>'
- + '<footer>'
- + '<button class="redactor_modal_btn redactor_btn_modal_close">' + this.opts.curLang.cancel + '</button>'
- + '<button id="redactor_insert_link_btn" class="redactor_modal_btn redactor_modal_action_btn">' + this.opts.curLang.insert + '</button>'
- + '</footer>',
+ // link
+
+ // table
modal_video: String()
+ '<section id="redactor-modal-video-insert">'
callback.call(this, node);
}, this ) );
- },
+ }
}
\ No newline at end of file