From 7837667b7c042018593e0ec39dce9eee77d2f4f3 Mon Sep 17 00:00:00 2001 From: Bartek Biedrzycki Date: Thu, 24 Oct 2024 13:31:34 +0200 Subject: [PATCH] Docs: demo fix. [short flow] --- .../ckeditor5-bookmark/docs/_snippets/features/bookmark.js | 3 ++- packages/ckeditor5-bookmark/docs/features/bookmarks.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/ckeditor5-bookmark/docs/_snippets/features/bookmark.js b/packages/ckeditor5-bookmark/docs/_snippets/features/bookmark.js index cf6a508fd16..8b1bd507b52 100644 --- a/packages/ckeditor5-bookmark/docs/_snippets/features/bookmark.js +++ b/packages/ckeditor5-bookmark/docs/_snippets/features/bookmark.js @@ -51,7 +51,8 @@ ClassicEditor allowExternalImagesEditing: [ /^data:/, 'origin', /ckbox/ ], forceDemoLabel: true }, - cloudServices: CS_CONFIG + cloudServices: CS_CONFIG, + licenseKey: 'GPL' } ) .then( editor => { window.editorBasic = editor; diff --git a/packages/ckeditor5-bookmark/docs/features/bookmarks.md b/packages/ckeditor5-bookmark/docs/features/bookmarks.md index 4c2740e5ebe..83a815b91ad 100644 --- a/packages/ckeditor5-bookmark/docs/features/bookmarks.md +++ b/packages/ckeditor5-bookmark/docs/features/bookmarks.md @@ -73,9 +73,11 @@ will be converted into a bookmark and the output will look like on the example b You can disable the automatic conversion by setting the {@link module:bookmark/bookmarkconfig~BookmarkConfig#enableNonEmptyAnchorConversion `config.bookmark.enableNonEmptyAnchorConversion`} to `false` in the editor configuration. + ```js ClassicEditor .create( document.querySelector( '#editor' ), { + licenseKey: '', // Or 'GPL'. plugins: [ Bookmark, /* ... */ ], toolbar: [ 'bookmark', /* ... */ ], bookmark: { @@ -85,6 +87,8 @@ ClassicEditor .then( /* ... */ ) .catch( /* ... */ ); ``` + + ## Bookmarks on blocks At this time, if a bookmark is attached to a block, it appears before it. However, we plan to expand this solution in the future. We invite you to help us [gather feedback for linking directly to blocks and auto generating IDs](https://github.com/ckeditor/ckeditor5/issues/17264).