Skip to content

Commit

Permalink
feat: support ImageInsert
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobax committed May 1, 2024
1 parent e10d756 commit e11b0f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/nova-ckeditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@
'resizeImage:50',
'resizeImage:75',
'resizeImage:original',
'|',
'insertImage',
],

'styles' => [
Expand Down
2 changes: 2 additions & 0 deletions resources/js/ckeditor/ckeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import MediaEmbed from '@ckeditor/ckeditor5-media-embed/src/mediaembed'
import HtmlEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed'
import ImageTextAlternative from '@ckeditor/ckeditor5-image/src/imagetextalternative'
import {LinkImage} from '@ckeditor/ckeditor5-link'
import { ImageInsert } from '@ckeditor/ckeditor5-image'

// Intend
import Indent from '@ckeditor/ckeditor5-indent/src/indent';
Expand Down Expand Up @@ -127,6 +128,7 @@ export default class CkEditor extends ClassicEditorBase {
ImageCaption,
ImageResize,
LinkImage,
ImageInsert,
ImageToolbar,
ImageTextAlternative,
MediaEmbed,
Expand Down

0 comments on commit e11b0f6

Please sign in to comment.