Skip to content

feat: add more formatting features on ckeditor #11160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@ckeditor/ckeditor5-mention": "44.3.0",
"@ckeditor/ckeditor5-paragraph": "44.3.0",
"@ckeditor/ckeditor5-remove-format": "44.3.0",
"@ckeditor/ckeditor5-table": "44.3.0",
"@ckeditor/ckeditor5-theme-lark": "44.3.0",
"@ckeditor/ckeditor5-ui": "44.3.0",
"@ckeditor/ckeditor5-upload": "44.3.0",
Expand Down
11 changes: 11 additions & 0 deletions src/components/TextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
import QuotePlugin from '../ckeditor/quote/QuotePlugin.js'
import Base64UploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/base64uploadadapter.js'
import ImagePlugin from '@ckeditor/ckeditor5-image/src/image.js'
import Table from '@ckeditor/ckeditor5-table/src/table.js'
import TableToolbar from '@ckeditor/ckeditor5-table/src/tabletoolbar.js'
import FindAndReplace from '@ckeditor/ckeditor5-find-and-replace/src/findandreplace.js'

Check failure on line 43 in src/components/TextEditor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

"@ckeditor/ckeditor5-find-and-replace" is extraneous
import ImageResizePlugin from '@ckeditor/ckeditor5-image/src/imageresize.js'
import ImageUploadPlugin from '@ckeditor/ckeditor5-image/src/imageupload.js'
import { DropdownView } from '@ckeditor/ckeditor5-ui'
Expand Down Expand Up @@ -89,6 +92,9 @@
PickerPlugin,
Mention,
LinkPlugin,
Table,
TableToolbar,
FindAndReplace,
]
const toolbar = ['undo', 'redo']

Expand Down Expand Up @@ -126,6 +132,11 @@
'strikethrough',
'link',
'removeFormat',
'insertTable',
'tableColumn',
'tableRow',
'mergeTableCells',
'findAndReplace',
])
}

Expand Down
Loading