Hi - I don’t think this is a use case I’ve seen here before (even in Read-only editor still changeable? - #2 by inducer) so here goes…
I’m using CM to display code that will never ever be editable. All I want is the syntax colouring and line numbers, nothing else… How can I configure it in React to optimise to ensure the smallest possible bundle size? Just setting EditorState.readOnly still seems iiuc to be including a load of stuff I know I’ll never need…