mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-09 01:06:09 +00:00
first commit
This commit is contained in:
21
lib/ckeditor4/plugins/pbckcode/plugin.js
Executable file
21
lib/ckeditor4/plugins/pbckcode/plugin.js
Executable file
@@ -0,0 +1,21 @@
|
||||
CKEDITOR.plugins.add('pbckcode', {
|
||||
icons: 'pbckcode',
|
||||
lang : ['fr', 'en'],
|
||||
init: function(editor) {
|
||||
// load JS file
|
||||
var head = document.getElementsByTagName('HEAD').item(0);
|
||||
var script= document.createElement("script");
|
||||
script.type = "text/javascript";
|
||||
script.src = CKEDITOR.plugins.getPath('pbckcode') + "dialogs/ace/ace.js";
|
||||
head.appendChild(script);
|
||||
|
||||
editor.addCommand('pbckcodeCommand', new CKEDITOR.dialogCommand('pbckcodeDialog'));
|
||||
|
||||
editor.ui.addButton('pbckcode', {
|
||||
label: editor.lang.pbckcode.title,
|
||||
command: 'pbckcodeCommand'
|
||||
});
|
||||
|
||||
CKEDITOR.dialog.add('pbckcodeDialog', this.path + 'dialogs/pbckcode.js' );
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user