To control how to handle reactions, specify the
data-reaction attribute
in the
iframe of the sketcher.
It accepts the following values:
OFF
- Canvas content is never applied as reaction.
Example:
<iframe src="../editor.html" data-reaction="OFF" id="sketch" class="sketcher-frame"></iframe>
BASIC
- Built-in (native) mechanism to resolve single-step reactions at molecule export.
Example:
<iframe src="../editor.html" data-reaction="BASIC" id="sketch" class="sketcher-frame"></iframe>
EXTERNAL
- Legacy behavior. The reactionconvertws webservice is responsible for
resolving reactions. If the webservice is not available, the behavior of the editor is similar than in OFF mode.
If the service is available, the service attempts to convert canvas content to a single step reaction at molecule export.
Example:
<iframe src="../editor.html" data-reaction="EXTERNAL" id="sketch" class="sketcher-frame"></iframe>