drafts-script-reference icon indicating copy to clipboard operation
drafts-script-reference copied to clipboard

Typo in example function

Open robertsisaacp opened this issue 1 year ago • 0 comments

Editor Class Reference Page

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.

robertsisaacp avatar Aug 12 '24 03:08 robertsisaacp