From da66a1142b7847c5d7f0ae2fbf3ec7ffd73c9680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gorzeli=C5=84ski?= Date: Mon, 24 Jul 2023 15:27:24 +0200 Subject: [PATCH] Docs: Fix warnings in the conversion guides. --- .../_snippets/framework/mini-inspector-heading-interactive.js | 3 ++- .../docs/_snippets/framework/mini-inspector-heading.js | 3 ++- .../docs/_snippets/framework/mini-inspector-structure.js | 3 ++- .../_snippets/framework/mini-inspector-upcast-attribute.js | 3 ++- .../docs/_snippets/framework/mini-inspector-upcast-element.js | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading-interactive.js b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading-interactive.js index 0c8ac448d2f..331b4b851cd 100644 --- a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading-interactive.js +++ b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading-interactive.js @@ -46,7 +46,8 @@ function CustomHeading( editor ) { } DecoupledEditor.create( document.querySelector( '#mini-inspector-heading-interactive' ), { - plugins: [ Essentials, CustomHeading ] + plugins: [ Essentials, CustomHeading ], + toolbar: [] } ) .then( editor => { window.editor = editor; diff --git a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading.js b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading.js index 5ccdac9b811..0415865aa94 100644 --- a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading.js +++ b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-heading.js @@ -18,7 +18,8 @@ function CustomHeading( editor ) { } DecoupledEditor.create( document.querySelector( '#mini-inspector-heading' ), { - plugins: [ Essentials, CustomHeading ] + plugins: [ Essentials, CustomHeading ], + toolbar: [] } ) .then( editor => { window.editor = editor; diff --git a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-structure.js b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-structure.js index a6fd7a7c68a..e1893e7e240 100644 --- a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-structure.js +++ b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-structure.js @@ -90,7 +90,8 @@ function Structure( editor ) { } DecoupledEditor.create( document.querySelector( '#mini-inspector-structure' ), { - plugins: [ Essentials, Paragraph, Structure ] + plugins: [ Essentials, Paragraph, Structure ], + toolbar: [] } ) .then( editor => { window.editor = editor; diff --git a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-attribute.js b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-attribute.js index 05253d651c2..4ed87e72577 100644 --- a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-attribute.js +++ b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-attribute.js @@ -26,7 +26,8 @@ function Image( editor ) { } DecoupledEditor.create( document.querySelector( '#mini-inspector-upcast-attribute' ), { - plugins: [ Essentials, Image ] + plugins: [ Essentials, Image ], + toolbar: [] } ) .then( editor => { MiniCKEditorInspector.attach( diff --git a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-element.js b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-element.js index fd249f952c1..5e1ae005918 100644 --- a/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-element.js +++ b/packages/ckeditor5-engine/docs/_snippets/framework/mini-inspector-upcast-element.js @@ -20,7 +20,8 @@ function Example( editor ) { } DecoupledEditor.create( document.querySelector( '#mini-inspector-upcast-element' ), { - plugins: [ Essentials, Example ] + plugins: [ Essentials, Example ], + toolbar: [] } ) .then( editor => { MiniCKEditorInspector.attach(