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

Replace Quill editor with TinyMCE #472

Merged
merged 10 commits into from
Sep 23, 2021

Conversation

henk23
Copy link
Contributor

@henk23 henk23 commented Sep 19, 2021

This PR is meant to serve as a proof of concept and not ready for production

Description

This PR is a proof of concept of replacing Quill editor with TinyMCE. Context: Issue #467

Caveats

  • i18n is still a Todo
  • The other issues are fixed, the feature is just not thoroughly tested yet.

@knadh
Copy link
Owner

knadh commented Sep 20, 2021

Looks good! Pushed a few changes and bug fixes.

For language packs, for every i18n language pack listmonk supports, we'll have to manually download the corresponding TinyMCE language pack and commit it to the repo and use a {listmonk_i18n_code: TinyMCE_i18n_code} map to load the appropriate language.

henk23 and others added 10 commits September 23, 2021 19:27
- Moved the init event to init_instance_callback() from
@init event which doesn't fire.
- Add watcher for form.body to fire onEditorChange event. This
  fixes TinyMCE editor changes not getting saved.
- Load bundled TinyMCE i18n language file based on a
  listmonk -> TinyMCE map.
- Refactor editor initialisation to accommodate this change.
- Introduce `constants.js -> uris.static` to make the static URI
  available to TinyMCE for loading language files.
@knadh knadh force-pushed the feature/replace-quill-with-tinymce branch from e2bbfea to 68512d2 Compare September 23, 2021 14:37
@knadh knadh merged commit c2a3f7d into knadh:master Sep 23, 2021
@knadh
Copy link
Owner

knadh commented Sep 23, 2021

@henk23 thanks for this PR and also for kick starting this in the first place. This is a valuable change for listmonk. 🎉

@knadh knadh added the enhancement New feature or request label Sep 23, 2021
@henk23 henk23 deleted the feature/replace-quill-with-tinymce branch September 23, 2021 16:59
@henk23
Copy link
Contributor Author

henk23 commented Sep 23, 2021

Happy to help. :) I don't often contribute to FOSS, but when I do, it's completely selfish. :D

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

Successfully merging this pull request may close these issues.

2 participants