Support wordWrap
option in umb-code-editor-modal
to match umb-code-editor
capabilities
#19319
andrejd22
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is currently no way to pass a
wordWrap
parameter to theumb-code-editor-modal
, even though it internally uses theumb-code-editor
component, which does support thewordWrap
option.The
umb-code-editor-modal
receives its data via the following interface:Proposal:
We should add an optional
wordWrap?: boolean
property to this interface and apply it in the#renderCodeEditor()
method ofumb-code-editor-modal
like so:This change would allow better control over the editor’s behavior via the modal and aligns with the capabilities of the underlying umb-code-editor component.
Use case example:
When creating a custom TinyMCE plugin with a code preview feature, this update would make it possible to configure the modal like so:
This demonstrates a practical benefit of the change and highlights an existing inconsistency (
formatOnLoad
missing in the TinyMCE plugin) that could also be addressed.Beta Was this translation helpful? Give feedback.
All reactions