Sfoglia il codice sorgente

Feature: Added Easy Image with Cloud Services and CKFinder adapter. See ckeditor/ckeditor5#567.

Piotrek Koszuliński 8 anni fa
parent
commit
32b29c15d0

+ 3 - 0
packages/ckeditor5-build-inline/build-config.js

@@ -16,10 +16,12 @@ module.exports = {
 	plugins: [
 		'@ckeditor/ckeditor5-essentials/src/essentials',
 
+		'@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter',
 		'@ckeditor/ckeditor5-autoformat/src/autoformat',
 		'@ckeditor/ckeditor5-basic-styles/src/bold',
 		'@ckeditor/ckeditor5-basic-styles/src/italic',
 		'@ckeditor/ckeditor5-block-quote/src/blockquote',
+		'@ckeditor/ckeditor5-easy-image/src/easyimage',
 		'@ckeditor/ckeditor5-heading/src/heading',
 		'@ckeditor/ckeditor5-image/src/image',
 		'@ckeditor/ckeditor5-image/src/imagecaption',
@@ -28,6 +30,7 @@ module.exports = {
 		'@ckeditor/ckeditor5-link/src/link',
 		'@ckeditor/ckeditor5-list/src/list',
 		'@ckeditor/ckeditor5-paragraph/src/paragraph',
+		'@ckeditor/ckeditor5-upload/src/imageupload'
 	],
 
 	// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.

File diff suppressed because it is too large
+ 1 - 1
packages/ckeditor5-build-inline/build/ckeditor.js


File diff suppressed because it is too large
+ 1 - 1
packages/ckeditor5-build-inline/build/ckeditor.js.map


+ 3 - 0
packages/ckeditor5-build-inline/package.json

@@ -14,11 +14,13 @@
     "build"
   ],
   "devDependencies": {
+    "@ckeditor/ckeditor5-adapter-ckfinder": "*",
     "@ckeditor/ckeditor5-autoformat": "^0.6.0",
     "@ckeditor/ckeditor5-basic-styles": "^0.9.0",
     "@ckeditor/ckeditor5-block-quote": "^0.2.0",
     "@ckeditor/ckeditor5-dev-utils": "^4.0.0",
     "@ckeditor/ckeditor5-dev-webpack-plugin": "^2.0.11",
+    "@ckeditor/ckeditor5-easy-image": "*",
     "@ckeditor/ckeditor5-editor-inline": "^0.2.0",
     "@ckeditor/ckeditor5-essentials": "^0.3.0",
     "@ckeditor/ckeditor5-heading": "^0.10.0",
@@ -26,6 +28,7 @@
     "@ckeditor/ckeditor5-link": "^0.8.0",
     "@ckeditor/ckeditor5-list": "^0.7.0",
     "@ckeditor/ckeditor5-paragraph": "^0.9.0",
+    "@ckeditor/ckeditor5-upload": "*",
     "babel-minify-webpack-plugin": "^0.2.0",
     "css-loader": "^0.28.5",
     "node-sass": "^4.5.3",

+ 7 - 1
packages/ckeditor5-build-inline/src/ckeditor.js

@@ -5,10 +5,12 @@
 
 import InlineEditorBase from '@ckeditor/ckeditor5-editor-inline/src/inlineeditor';
 import EssentialsPlugin from '@ckeditor/ckeditor5-essentials/src/essentials';
+import UploadadapterPlugin from '@ckeditor/ckeditor5-adapter-ckfinder/src/uploadadapter';
 import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
 import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
 import ItalicPlugin from '@ckeditor/ckeditor5-basic-styles/src/italic';
 import BlockquotePlugin from '@ckeditor/ckeditor5-block-quote/src/blockquote';
+import EasyimagePlugin from '@ckeditor/ckeditor5-easy-image/src/easyimage';
 import HeadingPlugin from '@ckeditor/ckeditor5-heading/src/heading';
 import ImagePlugin from '@ckeditor/ckeditor5-image/src/image';
 import ImagecaptionPlugin from '@ckeditor/ckeditor5-image/src/imagecaption';
@@ -17,16 +19,19 @@ import ImagetoolbarPlugin from '@ckeditor/ckeditor5-image/src/imagetoolbar';
 import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
 import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
 import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import ImageuploadPlugin from '@ckeditor/ckeditor5-upload/src/imageupload';
 
 export default class InlineEditor extends InlineEditorBase {}
 
 InlineEditor.build = {
 	plugins: [
 		EssentialsPlugin,
+		UploadadapterPlugin,
 		AutoformatPlugin,
 		BoldPlugin,
 		ItalicPlugin,
 		BlockquotePlugin,
+		EasyimagePlugin,
 		HeadingPlugin,
 		ImagePlugin,
 		ImagecaptionPlugin,
@@ -34,7 +39,8 @@ InlineEditor.build = {
 		ImagetoolbarPlugin,
 		LinkPlugin,
 		ListPlugin,
-		ParagraphPlugin
+		ParagraphPlugin,
+		ImageuploadPlugin
 	],
 	config: {
 		toolbar: [