r/javascript • u/neikiri • Apr 11 '26
I built an open-source WYSIWYG editor in vanilla JavaScript (no frameworks, CDN-ready)
https://neiki.eu/editor
32
Upvotes
r/javascript • u/neikiri • Apr 11 '26
5
u/IamTTC Apr 12 '26
Looks good!
I'd suggest decoupling the translations, you have 2 now, but if u add hundreds it will bloat the js file, and on that point also adding a method which developers on setup can add their custom translations.
And basically decoupling the core editor from modular features, ie icons, emojis ect.
Core should be core editor, while other modules should be at setup, this will introduce tree-shakable extensible package, rather then all included editor that will be super hard to change.
4
u/Charuru Apr 12 '26
What is the differentiator / usecase?
1
u/neikiri Apr 13 '26
If you encounter any issues or have suggestions for new features, please consider opening an issue on the GitHub repository: https://github.com/neikiri/neiki-editor
1
u/sshaw_ Apr 13 '26
Very nice.
146.0.7680.178 (Official Build) (arm64):
If a quote is the last section of a document I cannot get out of quote formatting by pressing down arrow or return.
Modal Button CSS needs to be fixed. Buttons are small and text is squished.
"Neiki's HTML Editor" is overlays the New button.
1
u/D0-FU Apr 13 '26
Uff muy bueno!!
Súper liviano con un buen performance de respuesta, lo que buscaba para crear una sección de comentarios. Lástima que no tiene en el toolbar una opción de spoiler o parecido, pero veo que permite custom plugin.
PD: separa las traducciones xD, así no se infla tanto el código, además de poder recibir traducciones nativas de la comunidad (aunque bueno, ahora con la IA se resuelve bastante).
2
u/RWOverdijk Apr 12 '26
I’m still looking for an editor that doesn’t use html strings (e.g. tiptap) and works well on mobile in react native without a webview