// Init cornerstone tools cornerstoneTools.init(); // Enable any elements, and display images // ... // Add our tool, and set it's mode const TextMarkerTool = cornerstoneTools.TextMarkerTool // set up the markers configuration const configuration = { markers: ['F5', 'F4', 'F3', 'F2', 'F1'], current: 'F5', ascending: true, loop: true, } cornerstoneTools.addTool(TextMarkerTool, { configuration }) cornerstoneTools.setToolActive('TextMarker', { mouseButtonMask: 1 })