Marvin JS Example - Load Custom Templates

Back to index

In this example, custom templates are loaded. These templates are stored in templates/mytemplates.mrv (URL is relative to the directory of Marvin JS package). It is an MRV file that contains several molecule structures. They will appear on custom templates toolbar if location of their source file is defined in the data-templateurl attribute of the iframe tag of the editor.

<div class="resizable">
	<iframe src="../editorws.html" id="sketch" class="sketcher-frame" data-templateurl="templates/mytemplates.mrv"></iframe>
Back to index