drafts-script-reference
drafts-script-reference copied to clipboard
Typo in example function
This page features the following example code:
// get the currently selected text
let text = editor.getSelectedText()
// replace selected text with uppercased version
editor.setSelectedText(text.toUppercase())
There is a typo; text.toUppercase() is called when it should be text.toUpperCase(). Sorry if this is the wrong place to submit this.