Sharing this with our Xojo community —we wrote this control for our main application (the control within the green square). Hopefully, some of you will find it useful. We struggled to find a modern, flexible rich text control plugin that works well with both small and large amounts of data.
Set every font styling property in the IDE, in code or change it with immediate effect during runtime.
Customize every visual element to your needs.
Supports two types of toolbars: traditional and popup (visible when text is selected).
Most properties can be defined in the IDE. The font styling you set also affects clipboard behavior when users paste content into the editor, so you don’t need to process incoming data.
Supports mentions: In the demo, the user has defined # $ % & { [ as mention triggers.
Supports key bindings: In the demo, you can use CTRL+1, 2, 3, 4, 5, 6 to quickly switch font styles.
Exports content as text, HTML, XML, JSON, etc.
Lightning fast—whether handling a paragraph of plain text or hundreds of pages of styled text.
Use the Opening event to set properties and define behavior before the class is initialized. Use the EditorReady event to make additional changes after initialization but before the document is loaded.
Single class—no external files.
No third-party plugins required.
Compatible with both Mac and Windows.
Please note, we never wrote this for a commercial release, but it served it’s purpose for us and we continue to update it, so if this comes in handy for other fellow developers, then we’re happy :).
Great Rich Text Control. thanks for sharing with the community.
Its hanging lot on Windows 11 both compiled & debug mode. Once not responding there is no way to continue and you have to kill the application from task manager. Since its in locked mode, the community cannot contribute to the code.
What version of Xojo are you using? Are you refering to the demo project or your own project file with the control in it? Does the same happen if you copy only the control to a new project and run it?
I made some minor modifications today (on a Mac) I will have a chance to test it again on Windows on Monday, but we’ve been using it for 2 years - so pretty stable at this point.
You can see it in action by download the main application on http://www.eldr.is
We are planning to let the control go without the encryption, at a later point in time.
Ah, so you’re not really “sharing” it with the community. Got it.
So just out of curiosity… what happens when a developer adds this class to their project, gets totally reliant on it and then you get hit by a bus? The community has been burned by this before, if you’re sharing it for free, please do it all the way.
A lot of work went into this control, and so many others we had to develop for our application. I’m not charging for anything. The reason I shared this today is because there was a post today on this forum (Struggling with text styles - #10 by Sveinn_Runar_Sigurdsson) where a user was struggling with text styles. I shared an encrypted version of the control, and the benefit of that can be educational, motivational… or simply through usage.
If anyone finds this useful… for any of the reasons above, I’m glad, but spare me the criticism until I start asking for your money. You can access the Javascript from within the control FYI via exposed methods. Replacing this plugin at any time in the future / integrating it’s data into your mobile app etc etc etc… is / and will be… a breeze, as it’s HTML and not RTF, Delta or any other editor specific format which will require a lot of maintenance work, going forward. In any case… add a smiley to the end of your posts when you write like that
No. Any closed source is a risk which needs to be managed. The plugin authors have been around for a long time. Closed source code can have a bug or something becomes incompatible with a newer version of Xojo. So it’s usually too high a risk to use.
Let the user decides if he need the closed source or not. Please don’t discourage a person sharing it. May be at some point he may open source it. There are people in the community looking for free closed source as well who can’t afford for the paid plugins.
Its the same high risk who sells the paid plugin and disappear / passed away. There are many eg: i can show.