|
|
@@ -7,11 +7,14 @@
|
|
|
|
|
|
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
|
|
|
import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
|
|
|
-import ImageResize from '../../src/imageresize';
|
|
|
import Indent from '@ckeditor/ckeditor5-indent/src/indent';
|
|
|
import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock';
|
|
|
import EasyImage from '@ckeditor/ckeditor5-easy-image/src/easyimage';
|
|
|
|
|
|
+import ImageResize from '../../src/imageresize';
|
|
|
+import ImageResizeEditing from '../../src/imageresize/imageresizeediting';
|
|
|
+import ImageResizeUI from '../../src/imageresize/imageresizeui';
|
|
|
+
|
|
|
import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
|
|
|
|
|
|
const commonConfig = {
|
|
|
@@ -31,6 +34,8 @@ const commonConfig = {
|
|
|
cloudServices: CS_CONFIG
|
|
|
};
|
|
|
|
|
|
+// Editor 1
|
|
|
+
|
|
|
const imageConfig1 = {
|
|
|
resizeUnit: '%',
|
|
|
resizeOptions: [
|
|
|
@@ -57,6 +62,14 @@ const imageConfig1 = {
|
|
|
|
|
|
const config1 = {
|
|
|
...commonConfig,
|
|
|
+ plugins: [
|
|
|
+ ArticlePluginSet,
|
|
|
+ Indent,
|
|
|
+ IndentBlock,
|
|
|
+ EasyImage,
|
|
|
+ ImageResizeEditing,
|
|
|
+ ImageResizeUI
|
|
|
+ ],
|
|
|
image: imageConfig1
|
|
|
};
|
|
|
|
|
|
@@ -69,6 +82,8 @@ ClassicEditor
|
|
|
console.error( err.stack );
|
|
|
} );
|
|
|
|
|
|
+// Editor 2
|
|
|
+
|
|
|
const imageConfig2 = {
|
|
|
resizeUnit: '%',
|
|
|
resizeOptions: [
|
|
|
@@ -96,6 +111,7 @@ const imageConfig2 = {
|
|
|
'imageResize:75',
|
|
|
'imageResize:original'
|
|
|
],
|
|
|
+ disableResizeHandles: true,
|
|
|
styles: [
|
|
|
'full',
|
|
|
'alignLeft',
|