Jungwoo-An / react-editor-js

βš›οΈπŸ“The unofficial editor-js component for React
https://codesandbox.io/s/react-editor-js-v2-34bfl
MIT License
945 stars 77 forks source link

EditorJS API is not accessible #189

Open christoph-kluge opened 2 years ago

christoph-kluge commented 2 years ago

Environment

Describe

I wanted to switch from 1.10.0 to 2.x but I cannot access the the editorjs core api anymore. The new README.md states it's not accessible, just an abstracted version of it.

We rely on many features to access and work with the editor instance. It's some kind of sticky header where we add concrete buttons to quickly interact with the editor. Here are some as an example use-cases:

Was there a specific reason to "remove" this access?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

christoph-kluge commented 2 years ago

Bump

Jungwoo-An commented 2 years ago

@christoph-kluge Hi! First of all, thanks for your interest! πŸ‘‹

Abstracted editor-js is for isomorphic react-editor-js. If you want to access editor-js instance, just use editorCore._editorJS. But I don't recommend it.

I recommend that you create PR that supports API you need. πŸ™ŒπŸ» !

Thanks!

proteye commented 2 years ago

@christoph-kluge @Jungwoo-An Hello. I'm added listed api in https://github.com/Jungwoo-An/react-editor-js/pull/192

SalahAdDin commented 1 year ago

It does not leave us to implement i18n too.