mirrorsharp
mirrorsharp copied to clipboard
Question: Multiple MirrorSharp areas
I've been trying to get multiple mirrorsharp areas (or even one mirrorsharp area and a codemirror area) working in the same page - but haven't had any luck. The page seems to freeze up if I iterate through const textareas = document.getElementsByTagName('textarea');
and set them up either both as mirrosharp areas (with separate endpoints) or the first as a mirrosharp area and the second as a codemirror area (with _codemirror.default.fromTextArea
).
Has anyone had any luck getting this to work - or has an an example I can take a look at? Many thanks!
Thanks for asking! Interesting -- if they are completely separate, I would expect it to work. As far I remember mirrorsharp does not create any singletons.
If the page is freezing up, it might be good to run Chrome Profiler (in dev tools) to see what is it trying to do.