星火管控前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin.js 1.2KB

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. CKEDITOR.plugins.add( 'sourcedialog', {
  6. // jscs:disable maximumLineLength
  7. 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%
  8. // jscs:enable maximumLineLength
  9. requires: 'dialog',
  10. icons: 'sourcedialog,sourcedialog-rtl', // %REMOVE_LINE_CORE%
  11. hidpi: true, // %REMOVE_LINE_CORE%
  12. init: function( editor ) {
  13. // Register the "source" command, which simply opens the "source" dialog.
  14. editor.addCommand( 'sourcedialog', new CKEDITOR.dialogCommand( 'sourcedialog' ) );
  15. // Register the "source" dialog.
  16. CKEDITOR.dialog.add( 'sourcedialog', this.path + 'dialogs/sourcedialog.js' );
  17. // If the toolbar is available, create the "Source" button.
  18. if ( editor.ui.addButton ) {
  19. editor.ui.addButton( 'Sourcedialog', {
  20. label: editor.lang.sourcedialog.toolbar,
  21. command: 'sourcedialog',
  22. toolbar: 'mode,10'
  23. } );
  24. }
  25. }
  26. } );