I am developing a Photoshop UXP plugin and need a text editor where users can apply bold, underline, and paragraph alignment (left, center, right) using toolbar buttons. The formatting should be visible directly in the editor while typing. Is there a recommended way to implement this in UXP, or are there existing rich text editor components that work well with UXP?
There’s a million different WYSIWYG editors to pick from, but chances are most won’t render correctly in UXP. What you’ll likely want is a WebView UI so you can use full JS/HTML/CSS capabilities in the frontend.
WebView is pretty complicated to setup, so we’ve made it easy with our free open-source framework Bolt UXP: Bolt UXP — Resources | Hyper Brew
I don’t believe combining both (text editing + nice text formatting) is possible right now in UXP. I wanted to have something like Monaco text editor in the Alchemist plugin. But UXP does not have enough features to support that. Webview is your best bet. But it has its own disadvantages.