Skip to content

Commit

Permalink
Merge pull request #17319 from ckeditor/ck/master/fix
Browse files Browse the repository at this point in the history
Docs: demo fix.
  • Loading branch information
godai78 authored Oct 24, 2024
2 parents 0e91b29 + 7837667 commit fc84520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ ClassicEditor
allowExternalImagesEditing: [ /^data:/, 'origin', /ckbox/ ],
forceDemoLabel: true
},
cloudServices: CS_CONFIG
cloudServices: CS_CONFIG,
licenseKey: 'GPL'
} )
.then( editor => {
window.editorBasic = editor;
Expand Down
4 changes: 4 additions & 0 deletions packages/ckeditor5-bookmark/docs/features/bookmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<code-switcher>
```js
ClassicEditor
.create( document.querySelector( '#editor' ), {
licenseKey: '<YOUR_LICENSE_KEY>', // Or 'GPL'.
plugins: [ Bookmark, /* ... */ ],
toolbar: [ 'bookmark', /* ... */ ],
bookmark: {
Expand All @@ -85,6 +87,8 @@ ClassicEditor
.then( /* ... */ )
.catch( /* ... */ );
```
</code-switcher>

## 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).
Expand Down

0 comments on commit fc84520

Please sign in to comment.