JerryI
April 15, 2023, 9:45pm
1
I am trying to implement replacement widgets with instances of CM editors inside to draw fractions, matrixes and tables
It kinda works, but I can’t get rid of blinking cursors inside and make a proper cursor movement from the parent editor into the child editor.
marijn
April 17, 2023, 4:00pm
2
Classical case of leaky CSS rules (the inner editors see a .cm-focused
element in their ancestor nodes, and thus apply the styles that should only apply if they are focused).
This patch should help, but unfortunately also means themes have to be updated to match the rule specificity.
committed 03:58PM - 17 Apr 23 UTC
So that they no longer leak into nested editors.
FIX: Make sure styles targetin… g the editor's focus status are specific enough
to not cause them to apply to editors nested inside another focused editor. This
will require themes to adjust their selection background styles to match the new
specificity.
See https://discuss.codemirror.net/t/remove-blinking-cursor-inside-the-widget-with-cm-instance/6284
1 Like
JerryI
April 18, 2023, 12:12pm
3
It works perfectly. I can’t imagine how I would make such complicated projects without CM6. Thanks! Great