diff --git a/frontend/package.json b/frontend/package.json index 7a19d013..d872c164 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -18,6 +18,7 @@ "@editorjs/nested-list": "^1.4.2", "@editorjs/paragraph": "^2.11.3", "@editorjs/simple-image": "^1.6.0", + "@editorjs/table": "^2.4.2", "ace-builds": "^1.36.2", "chart.js": "^4.4.1", "codemirror-editor-vue3": "^2.8.0", diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index aaf79771..173d9f97 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -11,6 +11,7 @@ import { watch } from 'vue' import dayjs from '@/utils/dayjs' import Embed from '@editorjs/embed' import SimpleImage from '@editorjs/simple-image' +import Table from '@editorjs/table' export function createToast(options) { toast({ @@ -150,6 +151,7 @@ export function getEditorTools() { quiz: Quiz, upload: Upload, image: SimpleImage, + table: Table, paragraph: { class: Paragraph, inlineToolbar: true, diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 95921fb2..4521b727 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -120,6 +120,13 @@ dependencies: "@codexteam/icons" "^0.0.6" +"@editorjs/table@^2.4.2": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@editorjs/table/-/table-2.4.2.tgz#99a2b3f9ea8f39c9ca4df80b8e63bff6e21d0193" + integrity sha512-zGmwLCarsaTgOfccxR3Lc6oC3QTX0JdoK0O3+8TE/VCR/xnW92VO7rAcu4cqTwtbFMQErYl8id9a5hM23vyFng== + dependencies: + "@codexteam/icons" "^0.0.6" + "@esbuild/aix-ppc64@0.21.5": version "0.21.5" resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz#c7184a326533fcdf1b8ee0733e21c713b975575f"