This commit is contained in:
life committed 2014-05-07 13:06:24 +08:00
1 parent fac05a7b6c
commit 476ade10e7
1085 files changed
+259628

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
/**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/*global tinymce:true */
// 与jbimages结合
// 使用了jbimages/dialog-v4.htm
// jbimages/js/dialog-v4.js
tinymce.PluginManager.add('image', function(editor, url) {
// 弹框
function showDialog() {
// 与jbimages结合
// Simple default dialog
win = editor.windowManager.open({
title: 'Insert/edit image',
file : url + '/dialog.htm',
width : 550,
height: 345
});
}
// 添加按钮
editor.addButton('image', {
icon: 'image',
tooltip: 'Insert/edit image',
onclick: showDialog,
stateSelector: 'img:not([data-mce-object])'
});
});