Tutorials & ManualsHow-tosLessonsMiscellaneousGetting Expected Results When Setting clipboardData["html"]

Getting Expected Results When Setting clipboardData["html"]

When setting clipboardData["html"] the textFont of the templateField is used (or the home stack if the textFont is empty). This has implications for OS X applications where Lucida Grande is normally the default font. Lucida Grande does not have an italics style so italics will be lost when pasting into 3rd party applications. The workaround is to assign the templateField a textFont before assigning clipboardData["html"].

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.