-
Notifications
You must be signed in to change notification settings - Fork 320
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
3.0 rewrite #447
Comments
Part of the modern toolchain could also be Vite.
This makes it easy to develop with hot reload. |
I agree and is something I'm considering, it does seem to be more focused on web applications and less on packages like easymde. Also it uses Rollup under the hood anyway.
|
Maybe the new version of the editor should be a custom Web Component? The editor could be built using Vue and exported to run anywhere. Edit 2022-11-16: I've looked into this, if the editor were a Web Component, providing options and other JavaScript API features would be difficult for any user of the editor. |
would be nice to have the possibility to toggle the spell-checker on and off while writing |
I think the spellchecker should be removed since browsers already come with built-in spellcheckers anyways. |
I can still see some use for it with for forms in languages that a browser would not be set to. But maybe off by default? |
In that case it is arguably useful. On the other hand it would arguably be nice to drop the dependency too tho which would result in less code, reduced bundle size and a smaller API. |
Hello. I tried to migrate the current codebase to rollup, and managed to pass all the tests. Although the changes are not extensive, since this involves replacing a build system, it requires careful planning. I think my causal work is not sufficient to make a pull request. |
I've now pushed the https://github.com/Ionaru/easy-markdown-editor/tree/v3 branch with the current (incomplete) state of the rewrite. |
Can I recommend documentation for how to test as a first class concern? I'm currently facing an issue where due to our various customisations, the keyboard shortcuts have broken, so I'm currently going through and writing tests. But writing tests for this library is difficult with React Testing Library as JSDOM doesn't behave particularly well (eg jsdom/jsdom#3002 jsdom/jsdom#1937). So basically, the ask is for documentation that advises about how to test code that uses this library. I'm happy to help, this is something I'm passionate about. |
Hello @Ionaru ! Thanks a lot |
It's starting to look like another abandoned library =( |
Not abandoned. |
Is your feature request related to a problem? Please describe.
Current codebase of the editor contains a lot of legacy code, is difficult to maintain and depends on a toolchain that is no longer optimal anno 2022.
This is basically my wish list for v3.0.
Describe the solution you'd like
A complete rewrite of the codebase, split code over multiple files, written in TypeScript and SCSS.
Describe alternatives you've considered
Additional context
easymde
andeasymde-core
? #167).marked
(Support Marked 9.0 #561)Progress
You can follow progress on the https://github.com/Ionaru/easy-markdown-editor/tree/v3 branch.
The text was updated successfully, but these errors were encountered: