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

Use pat-ckeditor #78

Open
thet opened this issue Oct 15, 2022 · 2 comments
Open

Use pat-ckeditor #78

thet opened this issue Oct 15, 2022 · 2 comments
Assignees

Comments

@thet
Copy link
Member

thet commented Oct 15, 2022

Hi @duchenean - as we were chatting today on the way to the namur train station,
you might consider using pat-ckeditor:
https://github.com/Patternslib/pat-ckeditor

for an example how to add options via a data-pat-ckeditor attribute, see the example at https://github.com/Patternslib/pat-PATTERN_TEMPLATE/blob/master/src/PATTERN_TEMPLATE.js

You can then open a PR at https://github.com/Patternslib/pat-ckeditor

@thet
Copy link
Member Author

thet commented Oct 17, 2022

Just released 3.2.0, which would be the version to use.

However, in Plone 6 it should even be easier to include any JavaScript in Plone.

But the benefit with this pattern would be that you don't have any bundling stuff in this package, only integration of the Pattern +
the JavaScript would only be loaded when the pattern is used.

@gotcha
Copy link
Member

gotcha commented Oct 20, 2022

It is great that there is a patternlib integration.
Nevertheless, I see it is CKEditor 5 and some people have plugins for CKEditor 4.

I guess it might make sense to start with the current code.

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

4 participants