check execCommand createlink status
<p>When making a simple WYSIWYG editor with JavaScript for a textarea I can check the current status of a button (Bold, Italic, Underlined etc) like that:</p>

<pre><code>document.queryCommandState("bold")
</code></pre>

<p>But if I'd like to see if selected text has a link attached, how could I do that (or is it a longer process?). The same query (or queryCommandValue) with "CreateLink" does not seem work. </p>
