Skip to content
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

How do we add plugins? Can we define them somewhere? #15

Open
tonypartridger opened this issue Feb 3, 2023 · 2 comments
Open

How do we add plugins? Can we define them somewhere? #15

tonypartridger opened this issue Feb 3, 2023 · 2 comments

Comments

@tonypartridger
Copy link

tonypartridger commented Feb 3, 2023

EditorJS supports whole range of very useful plugins beyond the defaults, how can we harness them?

@adampatterson
Copy link

I forked the code and added some but I'm having trouble compiling the assets since it's looking for postcss loader that would be in the main laravel root.

@adampatterson
Copy link

adampatterson commented Apr 7, 2024

@rahmanramsi Do you have any directions on how custom plugins could be added?

Installing and updating the JS is no problem but building seems to be a bit tricky.

I have a vanilla install of Laravel 11 + Filament 3 and if I npm i in the composer folder and then npm run prod

ERROR in ./resources/css/editor.css
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
Error [ERR_REQUIRE_ESM]: require() of ES Module /filament/postcss.config.js from /filament/vendor/rahmanramsi/filament-editorjs/node_modules/cosmiconfig/dist/loaders.js not supported.

It might be Mix vs Vite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants