When creating a simple WYSIWYG editor with JavaScript for a text field, I can check the current status of the button (Bold, Italic, Underlined, etc.) as follows:
document.queryCommandState("bold")
But if I would like to see if there is selected text, a linked link, how can I do this (or is it a longer process?). The same query (or queryCommandValue) with "CreateLink" does not work.
Allan source
share