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
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!
The text was updated successfully, but these errors were encountered:
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.
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!
The text was updated successfully, but these errors were encountered: