You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is not a bug report. (please use a different template for reporting a bug)
This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
The current decoration API only allows to customized CSS for the ranged content.
It would be great to have a way to replace the decoration with customized Dom element, so what user sees is different from the real text content.
Current I am moving from CodeMirror to Monaco. For CodeMirror it allows to replace a range of text with customized dom using markText method like markText(start, end, { replacedWith: XXX}). replacedWith options could be a customized dom element.
I have not find a proper way to do that in Monaco.
Thanks!
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
The text was updated successfully, but these errors were encountered:
Context
Description
The current decoration API only allows to customized CSS for the ranged content.
It would be great to have a way to replace the decoration with customized Dom element, so what user sees is different from the real text content.
Current I am moving from CodeMirror to Monaco. For CodeMirror it allows to replace a range of text with customized dom using markText method like
markText(start, end, { replacedWith: XXX})
.replacedWith
options could be a customized dom element.I have not find a proper way to do that in Monaco.
Thanks!
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
The text was updated successfully, but these errors were encountered: