source:
main/trunk/greenstone3/web/interfaces/default/js/ckeditor/plugins/sourcedialog/plugin.js@
32438
Last change on this file since 32438 was 32438, checked in by , 6 years ago | |
---|---|
File size: 1.2 KB |
Line | |
---|---|
1 | /** |
2 | * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. |
3 | * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license |
4 | */ |
5 | |
6 | CKEDITOR.plugins.add( 'sourcedialog', { |
7 | // jscs:disable maximumLineLength |
8 | lang: 'af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,ku,lt,lv,mn,ms,nb,nl,no,oc,pl,pt,pt-br,ro,ru,si,sk,sl,sq,sr,sr-latn,sv,th,tr,tt,ug,uk,vi,zh,zh-cn', // %REMOVE_LINE_CORE% |
9 | // jscs:enable maximumLineLength |
10 | requires: 'dialog', |
11 | icons: 'sourcedialog,sourcedialog-rtl', // %REMOVE_LINE_CORE% |
12 | hidpi: true, // %REMOVE_LINE_CORE% |
13 | |
14 | init: function( editor ) { |
15 | // Register the "source" command, which simply opens the "source" dialog. |
16 | editor.addCommand( 'sourcedialog', new CKEDITOR.dialogCommand( 'sourcedialog' ) ); |
17 | |
18 | // Register the "source" dialog. |
19 | CKEDITOR.dialog.add( 'sourcedialog', this.path + 'dialogs/sourcedialog.js' ); |
20 | |
21 | // If the toolbar is available, create the "Source" button. |
22 | if ( editor.ui.addButton ) { |
23 | editor.ui.addButton( 'Sourcedialog', { |
24 | label: editor.lang.sourcedialog.toolbar, |
25 | command: 'sourcedialog', |
26 | toolbar: 'mode,10' |
27 | } ); |
28 | } |
29 | } |
30 | } ); |
Note:
See TracBrowser
for help on using the repository browser.