Add a context menu and missing capability to the text editor #7549#7550
Add a context menu and missing capability to the text editor #7549#7550nadment wants to merge 1 commit into
Conversation
|
Hey @nadment — I took a look at where this was stuck and opened a small follow-up with the three gaps fixed: #7576 (branch What was breaking CI
Markdown preview + GuiRegistryOnce preview moved onto Fix: resolve static listeners with an assignable parameter type (interface/facade), and keep preview as: public static void previewMarkdown(IContentEditorWidget editorWidget)hop-web toolbarRAP now builds the shared Feel free to cherry-pick/merge from that branch into |
|
Replace with PR #7576 |
Follow-up on Hop Web content editor / Markdown previewFurther work is on #7576 (
Feel free to cherry-pick / merge from that branch into |
…7576) * Add a context menu and missing capability to the text editor #7549 * issue #7549 : fix content editor toolbar for RAP and Markdown preview Unblock PR #7550 by addressing the three gaps Nicolas hit: - RAP implements getLanguage() and builds the shared ContentEditor toolbar so plugin actions (Markdown preview) appear in hop-web. - BaseGuiWidgets resolves static toolbar listeners with assignable parameter types (interface/facade), so previewMarkdown(IContentEditorWidget) works when the registered instance is ContentEditorWidget or RAP widgets. - Markdown preview is a static listener taking IContentEditorWidget; dedupe content-editor i18n keys. * issue #7549 : shared content-editor toolbar actions for Hop Web Move ContentEditor-Toolbar @GuiToolbarElement handlers to a ui-module GuiPlugin (ContentEditorActions) so Hop Web registers undo/copy/etc. without loading hop-ui-rcp. - Extend IContentEditorWidget with cut/paste/undo/redo - RCP ContentEditorWidget keeps context menu + keyboard shortcuts - RAP implements new ops (Text cut/paste; Monaco no-ops for now) - Exclude hop-ui-rcp from Hop Web image (fixes Tomcat 404 startup) - Skip ContentEditorWidget GuiPlugin scan on web as defense in depth * issue #7549 : Markdown preview on Hop Web via in-app Browser dialog Temp file:// URLs open on the client browser, so server-side temp HTML never displays in Hop Web. Use ShowBrowserDialog for the RAP case; desktop keeps the system browser + temp file path. Also surface InvocationTargetException from static toolbar listeners instead of silently falling through to a failed instance-method path. * issue #7549 : Monaco dark theme for Hop Web content editors Pass PropsUi dark mode into the Monaco remote widget as theme vs-dark or vs (same pattern as canvas themeId). monaco-editor.js honors the theme property on create and via setTheme. --------- Co-authored-by: Nicolas Adment <39568358+nadment@users.noreply.github.com>
The Markdown preview button no longer works in RCP (GuiRegistry cannot find the listener method with the Facade).
The Markdown preview button is no longer visible in RAP because the toolbar is included in ContentEditorWidget, which is specific to RCP.
There is a missing implementation specific to hop-web for the Monaco editor.