diff --git a/package-lock.json b/package-lock.json index cbbe118..66e99ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "@ckeditor/ckeditor5-heading": "^37.1.0", "@ckeditor/ckeditor5-highlight": "^37.1.0", "@ckeditor/ckeditor5-horizontal-line": "^37.1.0", + "@ckeditor/ckeditor5-image": "^37.1.0", "@ckeditor/ckeditor5-link": "^37.1.0", "@ckeditor/ckeditor5-list": "^37.1.0", "@ckeditor/ckeditor5-paragraph": "^37.1.0", @@ -518,6 +519,21 @@ "npm": ">=5.7.1" } }, + "node_modules/@ckeditor/ckeditor5-image": { + "version": "37.1.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-image/-/ckeditor5-image-37.1.0.tgz", + "integrity": "sha512-wIKGfasamPE7MWnIoNIpmWgxlZOz8bxw8ZaLucRdJGaU1+orzQabYcqZM+y+3puAowXs2MIGcA7kSmyJPvL0Jw==", + "dev": true, + "dependencies": { + "@ckeditor/ckeditor5-ui": "^37.1.0", + "ckeditor5": "^37.1.0", + "lodash-es": "^4.17.15" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=5.7.1" + } + }, "node_modules/@ckeditor/ckeditor5-link": { "version": "37.1.0", "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-link/-/ckeditor5-link-37.1.0.tgz", @@ -5194,6 +5210,17 @@ "ckeditor5": "^37.1.0" } }, + "@ckeditor/ckeditor5-image": { + "version": "37.1.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-image/-/ckeditor5-image-37.1.0.tgz", + "integrity": "sha512-wIKGfasamPE7MWnIoNIpmWgxlZOz8bxw8ZaLucRdJGaU1+orzQabYcqZM+y+3puAowXs2MIGcA7kSmyJPvL0Jw==", + "dev": true, + "requires": { + "@ckeditor/ckeditor5-ui": "^37.1.0", + "ckeditor5": "^37.1.0", + "lodash-es": "^4.17.15" + } + }, "@ckeditor/ckeditor5-link": { "version": "37.1.0", "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-link/-/ckeditor5-link-37.1.0.tgz", diff --git a/package.json b/package.json index 2fbd47f..99cacae 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@ckeditor/ckeditor5-heading": "^37.1.0", "@ckeditor/ckeditor5-highlight": "^37.1.0", "@ckeditor/ckeditor5-horizontal-line": "^37.1.0", + "@ckeditor/ckeditor5-image": "^37.1.0", "@ckeditor/ckeditor5-link": "^37.1.0", "@ckeditor/ckeditor5-list": "^37.1.0", "@ckeditor/ckeditor5-paragraph": "^37.1.0", diff --git a/src/ckeditor.js b/src/ckeditor.js index 44e6c50..ccf2884 100644 --- a/src/ckeditor.js +++ b/src/ckeditor.js @@ -8,6 +8,8 @@ import Essentials from "@ckeditor/ckeditor5-essentials/src/essentials.js"; import Heading from "@ckeditor/ckeditor5-heading/src/heading.js"; import Highlight from "@ckeditor/ckeditor5-highlight/src/highlight.js"; import HorizontalLine from "@ckeditor/ckeditor5-horizontal-line/src/horizontalline.js"; +import { Image } from "@ckeditor/ckeditor5-image"; +import ImageInsertViaUrl from "@ckeditor/ckeditor5-image/src/imageinsertviaurl.js"; import Italic from "@ckeditor/ckeditor5-basic-styles/src/italic.js"; import Link from "@ckeditor/ckeditor5-link/src/link.js"; import List from "@ckeditor/ckeditor5-list/src/list.js"; @@ -43,6 +45,8 @@ const plugins = [ Heading, Highlight, HorizontalLine, + Image, + ImageInsertViaUrl, Italic, Link, List, @@ -76,6 +80,7 @@ const config = { "subscript", "|", "link", + "insertImage", "bulletedList", "numberedList", "math",