Anyone built or know of any module like this but for vision? Been requested to add a rich text editor for a vision one-note clone type application.
I'm not aware of any existing modules, but I'm pretty sure there are a couple of rich text Swing editors out there. Possibly not FOSS, though - you might have to shell out for a license and embed in your own custom module.
If you can teach folks Markdown syntax, it would be relatively easy to have a basic text area on one side, a module to render it to HTML, and an editor pane on the other side to display it.
This definitely involves making a module right? Unless I wanted to try to hack together a template but there's already some prebuilt solutions in java.
Seems like there is a way to use OpenOffice though I don't know what text I could get out of that - I have to save and be able to reopen this in the same component later through database query.
This one looks most promising to me - Java Answers Forum - WYSIWYG Html Editor with JEditorPane and HTMLEditorKit
I ran the code in this forum post, it looks nice, saves as plain html. I would have to rework how it looks, definitely want something more like
than how it uses dropdown menus for any styling but it's pretty much there.
Now I have an actual project to learn how to do a module instead of just curiosity. Think this is my best bet unless anyone knows of anything else.
Dream a little dream..
Asked for this 4 years ago
Basically want to use a module for this, if only for performance.
I can think of a couple of very hacky ways to do something like this without a module but pretty sure the performance would be trash.
Yea I thought of a way to do with a template but I hesitate to do it. We're going to ask the customer if they would pay for a weeks worth of my time to try to make this a module. I hope they say yes, they are trying to sell this Vision application I am building for them as better than one note and right now a rich text editor is a big strike against it. If I get the go ahead (fingers crossed I do) I will share my resulting module with the community.
Make sure they let you....
Good point. Cross that bridge if they're willing to pay me to get to it.
This project has been approved and I am working on it, my first real foray into module development. Doing some research in pure swing solutions to this I have found the above link - Java Answers Forum - WYSIWYG Html Editor with JEditorPane and HTMLEditorKit with a pure java swing solution. It seems like the HTMLDocument
https://docs.oracle.com/javase/8/docs/api/index.html?javax/swing/text/html/HTMLDocument.html might be the right way forward. My question here is does this seem like the right path forward, or are there other more clear obvious ways to make a WYSIWYG editor in vision?