ChangJoo-Park / vue-editor-js

editor.js for Vue users
https://codesandbox.io/embed/o7lyqwmvmq
MIT License
360 stars 76 forks source link

How to create a plugin for Editor.js with another tiptap editor? #14

Open milanP96 opened 5 years ago

milanP96 commented 5 years ago

Hello. While Editor.js does not have the functionality allowing to place one block in another, for example, to insert pictures and lists into table fields. We decided to make a plugin for Editor.js with another editor inside which supports JSON and which has the necessary functionality. We have a friend in St. Petersburg who talked with one of the Editor.js developers, Georgy Berezhnoy, and told him about our idea of ​​creating a plug-in for Editor.js with another editor inside, that when in the future the necessary functionality appears in Editor.js (and judging by the plans will not be soon), then we can simply convert the data from another editor to JSON format Editor.js and talk about what we think there may be conflicts between the two editors with copy / paste. Georgy said that when we make such a plugin with another editor inside, it will be ready to make the necessary corrections in Editor.js in order to fix such possible conflicts, add a new functionality to the API. But can not help with the implementation of this on Vue.js. Therefore, dear @yashha and @ChangJoo-Park , I appeal to you with this question :-) We thought of initially introducing a editor for Vue called Tiptap https://github.com/scrumpy/tiptap as a plug-in for Editor.js. But now we see that there is such complexity in it that it turns out you need to push the Vue editor into the usual JS on which Editor.js is made and then it’s all to be pushed again in Vue :-D And we don’t yet know how to do it correctly.

Let's think about how this can be done? Maybe the tiptap editor may not be suitable for this task. It may be worth looking for another, not a vue editor, but a JSON editor made on a regular JS?

yashha commented 5 years ago

You have to see if you can use tip tap without vue or mount it in a plugin, then you could maybe make it a editor.js plugin. Maybe contact tiptap for this or create an issue there.

This repo here is just a wrapper for editor.js, so this is no issue for this repo. Please open it here: https://github.com/codex-team/editor.js/issues