directus-extension-editorjs-interface icon indicating copy to clipboard operation
directus-extension-editorjs-interface copied to clipboard

How do you add plugins to editorjs?

Open KrisKnez opened this issue 3 years ago • 8 comments

image Does this extension allow you to add plugins to editorks? If so how?

KrisKnez avatar Jan 31 '22 18:01 KrisKnez

Unfortunately, right now there is no way to do it out of the box. The only way is to fork the repo and use custom version.

What plugin you need?

dimitrov-adrian avatar Feb 04 '22 12:02 dimitrov-adrian

It would be very nice to have the table plugin enabled. Can you explain how to do that?

jimjimovich avatar Aug 26 '22 16:08 jimjimovich

It would be very nice to have the table plugin enabled. Can you explain how to do that?

Actually the table tool is included and you could enable it from the interface settings.

dimitrov-adrian avatar Aug 28 '22 14:08 dimitrov-adrian

Actually the table tool is included and you could enable it from the interface settings.

Oh, thank you! I didn't see that there.

jimjimovich avatar Aug 29 '22 18:08 jimjimovich

Hi! I want to add and configure the Link Autocomplete plugin ( https://github.com/editor-js/link-autocomplete ). @dimitrov-adrian can you give me some starting point how can i do that? My goal is ability to link texts to directus colletion elements. Many, many thanx!

c001os avatar Sep 16 '22 05:09 c001os

Hi, I would like to add the toggle block. https://github.com/kommitters/editorjs-toggle-block Can anyone give me some pointer how to archieve this.?

remcohh avatar Dec 02 '22 13:12 remcohh

It's not yet ready to create pr tho, I'm working on dynamic importing plugin packages and it works for me.

This requires to be provided user-defined plugin bundled package in form of es module, and serve it via endpoint extensions of directus.

https://github.com/sarashino/directus-extension-editorjs-interface/blob/c3916d2793e1211e28483e93ae1b22ea00b0e0e2/src/get-tools.ts#L135

sarashino avatar Jan 08 '23 00:01 sarashino

This also affects:

  • #40
  • #46

almereyda avatar Apr 13 '23 13:04 almereyda