瀏覽代碼

Enabled EasyImage in editor snippets.

Kamil Piechaczek 7 年之前
父節點
當前提交
932676e21a

+ 5 - 0
packages/ckeditor5-alignment/docs/_snippets/features/custom-text-alignment-options.js

@@ -5,6 +5,8 @@
 
 /* globals ClassicEditor, console, window, document */
 
+import { TOKEN_URL } from '@ckeditor/ckeditor5-cloudservices/tests/_utils/cloudservices-config';
+
 ClassicEditor
 	.create( document.querySelector( '#snippet-custom-text-alignment-options' ), {
 		toolbar: {
@@ -15,6 +17,9 @@ ClassicEditor
 		},
 		alignment: {
 			options: [ 'left', 'right' ]
+		},
+		cloudServices: {
+			tokenUrl: TOKEN_URL
 		}
 	} )
 	.then( editor => {

+ 5 - 0
packages/ckeditor5-alignment/docs/_snippets/features/custom-text-alignment-toolbar.js

@@ -5,6 +5,8 @@
 
 /* globals ClassicEditor, console, window, document */
 
+import { TOKEN_URL } from '@ckeditor/ckeditor5-cloudservices/tests/_utils/cloudservices-config';
+
 ClassicEditor
 	.create( document.querySelector( '#snippet-custom-text-alignment-toolbar' ), {
 		toolbar: {
@@ -12,6 +14,9 @@ ClassicEditor
 				'headings', '|', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify'
 			],
 			viewportTopOffset: 60
+		},
+		cloudServices: {
+			tokenUrl: TOKEN_URL
 		}
 	} )
 	.then( editor => {

+ 1 - 0
packages/ckeditor5-alignment/package.json

@@ -13,6 +13,7 @@
   },
   "devDependencies": {
     "@ckeditor/ckeditor5-block-quote": "^1.0.0-alpha.2",
+    "@ckeditor/ckeditor5-cloudservices": "^1.0.0-alpha.1",
     "@ckeditor/ckeditor5-editor-classic": "^1.0.0-alpha.2",
     "@ckeditor/ckeditor5-enter": "^1.0.0-alpha.2",
     "@ckeditor/ckeditor5-heading": "^1.0.0-alpha.2",