Skip to content

Commit

Permalink
BC-4145 - delete text element (#11)
Browse files Browse the repository at this point in the history
* Add wordcount plugin
  • Loading branch information
christian-darsow authored Jun 21, 2023
1 parent feea621 commit 0e3b7b7
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ npm i @hpi-schul-cloud/ckeditor
- Table
- TableToolbar
- Underline
- WordCount

## Supported languages

Expand Down
29 changes: 27 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hpi-schul-cloud/ckeditor",
"version": "0.3.2",
"version": "0.3.3",
"description": "Custom version of CKEditor5 for the Schulcloud-Verbund-Software-Client",
"author": "Dataport Schulcloud-Verbund-Software Team",
"repository": {
Expand Down Expand Up @@ -39,6 +39,7 @@
"@ckeditor/ckeditor5-table": "^37.1.0",
"@ckeditor/ckeditor5-theme-lark": "^37.1.0",
"@ckeditor/ckeditor5-typing": "^37.1.0",
"@ckeditor/ckeditor5-word-count": "^37.1.0",
"@isaul32/ckeditor5-math": "^37.1.0",
"css-loader": "^5.2.7",
"postcss": "^8.4.22",
Expand Down
5 changes: 4 additions & 1 deletion src/ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ import Superscript from "@ckeditor/ckeditor5-basic-styles/src/superscript.js";
import Table from "@ckeditor/ckeditor5-table/src/table.js";
import TableToolbar from "@ckeditor/ckeditor5-table/src/tabletoolbar.js";
import Underline from "@ckeditor/ckeditor5-basic-styles/src/underline.js";
import WordCount from "@ckeditor/ckeditor5-word-count/src/wordcount.js";
import addMissingTranslationsDe from "./locales/de";
import addMissingTranslationsEn from "./locales/en";
import addMissingTranslationsEs from "./locales/es";
import addMissingTranslationsUk from "./locales/uk";

import "./custom.css";
import "./variables.css";
import "./content-styles.css";
import "./custom-content-styles.css";

class Editor extends BalloonEditor {}

Expand Down Expand Up @@ -56,6 +58,7 @@ Editor.builtinPlugins = [
Table,
TableToolbar,
Underline,
WordCount,
];

Editor.defaultConfig = {
Expand Down
5 changes: 5 additions & 0 deletions src/custom-content-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
* Override default CK content style
*
* For more information, check out https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/content-styles.html
*/
5 changes: 0 additions & 5 deletions src/custom.css

This file was deleted.

5 changes: 5 additions & 0 deletions src/variables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*
* Override default CK variables
*
* For more information, check out https://github.com/ckeditor/ckeditor5/tree/master/packages/ckeditor5-theme-lark/theme/ckeditor5-ui/globals
*/

0 comments on commit 0e3b7b7

Please sign in to comment.