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
Closing because all of the discussion about insert vs replace is on #132, and the details of correct replacement, splicing, and bumping are all handled by core Blockly's connect method.
Preconditions
NavigationController.canCurrentlyEdit(workspace)
istrue
Callback
originalBlockLocation
shouldReplace = true
Related work
The
insertFromFlyout
andinsertFromToolbox
actions will need to be updated to check forshouldReplace
.If
shouldReplace
istrue
, those actions should:originalBlock
to the workspace. This block can be found by inspecting the savedoriginalBlockLocation
shouldReplace
tofalse
originalBlockLocation
If the user hits
Escape
from the flyout or toolbox:shouldReplace
tofalse
originalBlockLocation
The text was updated successfully, but these errors were encountered: