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
wordWrapparameter to theumb-code-editor-modal, even though it internally uses theumb-code-editorcomponent, which does support thewordWrapoption.The
umb-code-editor-modalreceives its data via the following interface:Proposal:
We should add an optional
wordWrap?: booleanproperty to this interface and apply it in the#renderCodeEditor()method ofumb-code-editor-modallike 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 (
formatOnLoadmissing in the TinyMCE plugin) that could also be addressed.Beta Was this translation helpful? Give feedback.
All reactions