Copy paste support for boxes

From Kinopio – Thinking Canvas, support copying and pasting boxes such as this template set of boxes

4 Likes

one of the fundamental problems with ctrl-c copy is that browsers don’t reliably support anything other than plain text. Also, unlike cards, boxes always have defined dimensions that can’t be inferred from their contents.

The upside is that you can copy some cards and paste them in a diff text editor.

This is fine if we’re just talking about cards, because I’m just assuming that anything pasted is a card. But with a diff datatype I’ll need to copy/paste box data as stringified json.

the implications are that if you copy some boxes and paste it in a text editor then it’ll be a bunch of code, rather than just the box name. But that’ll probably be okay irl

1 Like

This led to a deeper refactoring of how the copy/paste system works, so that it can detect when pasted info is just regular text from elsewhere, vs when the pasted info is kinopio data .

In the later case, the pasted data will maintain relative positioning, connections, and all attributes like colors, etc

1 Like

now shipped

3 Likes