Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
feat(#85): add newest version of ckeditor table
Browse files Browse the repository at this point in the history
Add table cell property feature
  • Loading branch information
Stefanie S committed Jun 19, 2020
1 parent 32a4654 commit 4794a73
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 40 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ _writerey_data
/tmp
/out-tsc
/out
src/assets/ckeditor5/build
# Only exists if Bazel was run
/bazel-out

# dependencies
/node_modules
**/node_modules

# profiling files
chrome-profiler-events*.json
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/_documents/ckeditor/ckeditor.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (c) 2020 s-blu
//
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
Expand Down Expand Up @@ -78,7 +78,7 @@ export class CkeditorComponent implements OnInit, OnDestroy {
toolbar: ['imageTextAlternative', 'imageStyle:full', 'imageStyle:side'],
},
table: {
contentToolbar: ['tableColumn', 'tableRow', 'mergeTableCells', 'tableProperties'],
contentToolbar: ['tableProperties', 'tableColumn', 'tableRow', 'mergeTableCells', 'tableCellProperties'],
},
simpleUpload: {},
extraPlugins: [AllowClassesOnP],
Expand Down
10 changes: 5 additions & 5 deletions src/assets/ckeditor5/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "ckeditor5-custom-build",
"name": "ckeditor5-writerey-build",
"author": "CKSource",
"description": "A custom CKEditor 5 build made by the CKEditor 5 online builder.",
"version": "0.0.1",
"description": "A custom CKEditor 5 build used for the writerey app",
"version": "1.0.0-SNAPSHOT",
"license": "SEE LICENSE IN LICENSE.md",
"private": true,
"devDependencies": {
"@ckeditor/ckeditor5-alignment": "^19.0.0",
"@ckeditor/ckeditor5-alignment": "~19.0.0",
"@ckeditor/ckeditor5-autoformat": "^19.0.0",
"@ckeditor/ckeditor5-basic-styles": "^19.0.0",
"@ckeditor/ckeditor5-block-quote": "^19.0.0",
Expand Down Expand Up @@ -39,4 +39,4 @@
"scripts": {
"build": "webpack --mode production"
}
}
}
66 changes: 34 additions & 32 deletions src/assets/ckeditor5/src/ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import SimpleUploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/simpleu
import Strikethrough from '@ckeditor/ckeditor5-basic-styles/src/strikethrough.js';
import Table from '@ckeditor/ckeditor5-table/src/table.js';
import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties';
import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties';
import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js';
import TextTransformation from '@ckeditor/ckeditor5-typing/src/texttransformation.js';
import Underline from '@ckeditor/ckeditor5-basic-styles/src/underline.js';
Expand All @@ -40,38 +41,39 @@ class Editor extends DecoupledDocumentEditor {}

// Plugins to include in the build.
Editor.builtinPlugins = [
Alignment,
Autoformat,
BlockQuote,
Bold,
Essentials,
FontBackgroundColor,
FontColor,
FontSize,
Heading,
Highlight,
Image,
ImageCaption,
ImageResize,
ImageStyle,
ImageToolbar,
ImageUpload,
Indent,
IndentBlock,
Italic,
Link,
List,
MediaEmbed,
Paragraph,
PasteFromOffice,
RemoveFormat,
SimpleUploadAdapter,
Strikethrough,
Table,
TableProperties,
TableToolbar,
TextTransformation,
Underline
Alignment,
Autoformat,
BlockQuote,
Bold,
Essentials,
FontBackgroundColor,
FontColor,
FontSize,
Heading,
Highlight,
Image,
ImageCaption,
ImageResize,
ImageStyle,
ImageToolbar,
ImageUpload,
Indent,
IndentBlock,
Italic,
Link,
List,
MediaEmbed,
Paragraph,
PasteFromOffice,
RemoveFormat,
SimpleUploadAdapter,
Strikethrough,
Table,
TableCellProperties,
TableProperties,
TableToolbar,
TextTransformation,
Underline,
];

export default Editor;

0 comments on commit 4794a73

Please sign in to comment.