瀏覽代碼

Merge pull request #101 from ckeditor/t/ckeditor5/901

Docs: Upload images will work on all snippets. See ckeditor/ckeditor5#901.
Piotrek Koszuliński 7 年之前
父節點
當前提交
183ceb4f83

+ 3 - 0
packages/ckeditor5-heading/docs/_snippets/features/custom-heading-elements.js

@@ -5,8 +5,11 @@
 
 /* globals ClassicEditor, console, window, document */
 
+import { CS_CONFIG } from '@ckeditor/ckeditor5-cloudservices/tests/_utils/cloudservices-config';
+
 ClassicEditor
 	.create( document.querySelector( '#snippet-custom-heading-elements' ), {
+		cloudServices: CS_CONFIG,
 		heading: {
 			options: [
 				{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },

+ 3 - 0
packages/ckeditor5-heading/docs/_snippets/features/custom-heading-levels.js

@@ -5,8 +5,11 @@
 
 /* globals ClassicEditor, console, window, document */
 
+import { CS_CONFIG } from '@ckeditor/ckeditor5-cloudservices/tests/_utils/cloudservices-config';
+
 ClassicEditor
 	.create( document.querySelector( '#snippet-custom-heading-levels' ), {
+		cloudServices: CS_CONFIG,
 		heading: {
 			options: [
 				{ model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },

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

@@ -15,6 +15,7 @@
     "@ckeditor/ckeditor5-theme-lark": "^1.0.0-alpha.2"
   },
   "devDependencies": {
+    "@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-image": "^1.0.0-alpha.2",