mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
Ref https://github.com/webstudio-is/webstudio-designer/issues/289 Previous implementation relied on custom instance nodes which broke a lot of builtin behaviour. With new editor I use only builtin nodes. To preserve styling when entering editing mode className is computed and assigned to lexical element. Instances are stored in map and reused by updates converted and className renderer. Toolbar now shows "checked" state and allows to toggle off styling.