rtl.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /* globals console, window, document */
  6. import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
  7. import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
  8. import TableProperties from '../../src/tableproperties';
  9. import TableCellProperties from '../../src/tablecellproperties';
  10. ClassicEditor
  11. .create( document.querySelector( '#editor' ), {
  12. plugins: [ ArticlePluginSet, TableProperties, TableCellProperties ],
  13. language: {
  14. ui: 'ar',
  15. content: 'en'
  16. },
  17. toolbar: [
  18. 'heading', '|', 'insertTable', '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo'
  19. ],
  20. table: {
  21. contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties', 'tableCellProperties' ],
  22. tableToolbar: [ 'bold', 'italic' ]
  23. }
  24. } )
  25. .then( editor => {
  26. window.editor = editor;
  27. } )
  28. .catch( err => {
  29. console.error( err.stack );
  30. } );