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
Code that embeds CodeMirrorBlocks can use codemirror's api to create text markers. This feature preserves those markers when switching back and forth between block mode and text mode.
This feature doesn't have any tests, and based on my manual inspection of the code, is completely broken, so I'm going to remove it since it's making other code harder to refactor.
I also think we should change the way the codemirror instance is created. Instead of creating it ourselves from inside react components, and then bubbling the instance back up to the top, we should instead create it at the top and pass it down. Then when switching between block mode and text mode, we would actually just keep using the same codemirror instance instead of creating a new one, completely obviating the need to manually copy state between the old and new instances.
The text was updated successfully, but these errors were encountered:
* Pass quarantine in to ToplevelBlockEditable
* make action creators for quarantine state changes
* pass store directly to buildAPI
* Move block mode state into redux store
* extract buildAPI function out of ToggleEditor component
* Remove passedAST from BlockEditor
* remove duplicate ast state from ToggleEditor
* Rip out recorded marks. See #571
* Move code state into redux store
* Remove need to pass handleToggle to buildAPI
* Unify all buildApi related functions
* Ditch untested event copying code
* move api building all the way to the top level
* Only construct codemirror facade when needed
* expose redux store to tests using mountCMB helper
My attempt at describing this feature:
Code that embeds CodeMirrorBlocks can use codemirror's api to create text markers. This feature preserves those markers when switching back and forth between block mode and text mode.
This feature doesn't have any tests, and based on my manual inspection of the code, is completely broken, so I'm going to remove it since it's making other code harder to refactor.
I also think we should change the way the codemirror instance is created. Instead of creating it ourselves from inside react components, and then bubbling the instance back up to the top, we should instead create it at the top and pass it down. Then when switching between block mode and text mode, we would actually just keep using the same codemirror instance instead of creating a new one, completely obviating the need to manually copy state between the old and new instances.
The text was updated successfully, but these errors were encountered: