Open caendesilva opened 5 months ago
Running into some issues with the actual editor. My original POC worked when using a readonly view with syntax highlighting where I could just replace the highlighted HTML. Here that doesn't work in the editor, because the decorated HTML can't be rendered without making it readonly.
Either this happens: (All HTML is rendered)
Or this happens: (No HTML is rendered)
I still think we can get this to work using Ranges and/or Decorators, it just takes some detective work since Monaco is so poorly documented.
See https://stackoverflow.com/questions/46829158/wrap-monaco-ranges-in-custom-html-tags See https://github.com/microsoft/monaco-editor/issues/1070
Currently a proof of concept to fix https://github.com/abdelhamiderrahmouni/filament-monaco-editor/issues/4