-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.js
30 lines (28 loc) · 1.14 KB
/
plugin.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*********************************************************************************************************/
/**
* inserthtml plugin for CKEditor 4.x (Author: gpickin ; email: [email protected])
* version: 2.0
* Released: On 2015-03-10
* Download: http://www.github.com/gpickin/ckeditor-inserthtml
*
*
* Modified from original: inserthtml plugin for CKEditor 3.x (Author: Lajox ; Email: [email protected])
* mod-version: 1.0
* mod-Released: On 2009-12-11
* mod-Download: http://code.google.com/p/lajox
*/
/*********************************************************************************************************/
CKEDITOR.plugins.add('inserthtml4x',
{
icons: 'inserthtml4x',
init: function( editor ) {
editor.addCommand( 'inserthtml4x', new CKEDITOR.dialogCommand( 'inserthtmlDialog' ) );
editor.ui.addButton( 'inserthtml4x', {
label: 'Insert HTML',
command: 'inserthtml4x',
toolbar: 'insert',
icon : this.path + 'inserthtml.png'
});
CKEDITOR.dialog.add( 'inserthtmlDialog', this.path + 'dialogs/inserthtml.js' );
}
});