Ctrl+Click(Mac:command+Click) on your circuit and copy a circuit data.
Then paste it into template below.
To reuse your circuit as library, use device 'In' and 'Out'.
Then register it in JavaScript and add to the toolbox in HTML.
In this case, a new device 'RS-FF' is added.
Try to Double-Click the 'RS-FF' :)
Remember that all the connectors on
an input of 'In' and an output of 'Out'
are disconnected internally when the device is reused.
To customize the layout of library,
add the "layout" property to your device with a text editor.
"rows" and "cols" define the size.
nodes property contains 'label - position' pairs of nodes.
label, color, number of inputs, freq ...