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

Conclusions from a code review #446

Open
Reinmar opened this issue May 17, 2023 · 0 comments
Open

Conclusions from a code review #446

Reinmar opened this issue May 17, 2023 · 0 comments
Labels
task Neither a bug nor a feature request

Comments

@Reinmar
Copy link
Member

Reinmar commented May 17, 2023

I've done a quick code review and analysis of the app during CKE5 team's hackathon and have a couple conclusions on what we should do to make it easier to maintain and more stable to use.

I pushed some changes to https://github.com/ckeditor/github-writer/compare/hackathon-2023 (mainly: updated CKE5) too.

Maintainability

Stability

  • Many of us were complaining about GH Writer sometimes not loading. There are two possible reasons that I noticed:
    • I discovered that GH Writer tries to remember the mode I was in (wysiwyg vs native) and when you refresh, load that stored mode. I use GH Writer on a daily basis and never noticed this. But I'm quite sure it might've contributed to my feeling that "it doesn't load".
    • There's a logic on the editor load that verifies whether the existing MD content can be edited in CKE5. If it discovers that CKE5 would contribute to data loss or distort the content a bit, it prevents loading the editor. It's pedantic and makes CKE5 not load in cases where nothing would be lost. It might perhaps be worth asking the user what they prefer.

In general, I'd recommend simplifying the integration. There's a ton of code in it already and my feeling is that it'd be more useful if it was dumber but easier to maintain and improve.

@Reinmar Reinmar added the task Neither a bug nor a feature request label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Neither a bug nor a feature request
Projects
None yet
Development

No branches or pull requests

1 participant