Open evanvelikanov opened 3 years ago
Hi @ivan-velikanova, this is nice thanks for sharing. Btw I'm running CKEditor 4 succesfully in my JavaFX desktop application (Patient Medical Records).
Hi @ivan-velikanova, this is nice thanks for sharing. Btw I'm running CKEditor 4 succesfully in my JavaFX desktop application (Patient Medical Records).
BTW after making my original post I started contemplating on using CKEditor it seems much more powerful and easy. But rest of the stuff by WebFX is still relevant.
I have always required a html editor (preferably collaborative). My options have been Prosemirror based Atlaskit-editor, and CKEditor. For collaborative Atlastkit-editor is the best option I have, and for a general purpose but powerful WYISYG html editor - CKEditor (these are my personal preferences).
To make these work in a JavaFX environment is not easy and quiet twisted. It is then I suddenly discover WebFX. WebFX makes it possible to run JavaFX in browser natively by transpiling it to well-behaved Javascript using TeaVm and GWT. It is different from JPro. WebFX can run offline also, as it runs natively in the browser.
I have been beating my head against a wall for almost two years, thinking of how I want to do it. I am convinced I have only two options:
I am more inclined to option 2, even though it is going to be much more hard work. The reason is I do not have the required skills and confidence to shift to a web based stack. JavaFX is much more approachable for me and I have used it over the past one decade. Making simple websites is different, but in terms of (1) performance, (2) write once run anywhere (which JavaFX has really becomes thanks to GluonVM, JPro, WebFX etc), (3) ease of maintenance (across even decades), (4) my familiarity with the ecosystem of tools, (5) my fear of obsolesce of my knowledge given the speed with which the web tech stack evolve etc, I would strongly defer a web based tech stack like Reactjs/Vue etc for any big project.
So, I just wanted to share my thoughts and get feedback on this.
I also wanted to let people who are developing important tools and ui elements for JavaFX know that the scope of your work is going to increase beyond just desktop/mobile apps. In near future you may see your javafx ui libraries running natively in the browser, because of WebFX. I suppose there are more people like me interested in using or are already working on Html editor written in JavaFX, I hope they will find this and some duplication of effort can be avoided. I think anybody making an html editor in javafx is likely to use RichTextFX. I hope if there is anybody like that they will find this ticket and know the significance of their work.
For reference some samples of WebFX :
SpaceFX (by HanSolo) https://spacefx.webfx.dev/
Modern gauge https://moderngauge.webfx.dev/
Particles https://particles.webfx.dev/
Mandelbrot (Heavy computation) https://mandelbrot.webfx.dev/
WebFX discussion page : https://github.com/webfx-project/webfx/discussions/4