{"action":"closed","issue":{"url":"https://api.github.com/repos/timdown/rangyinputs/issues/9","labels_url":"https://api.github.com/repos/timdown/rangyinputs/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/timdown/rangyinputs/issues/9/comments","events_url":"https://api.github.com/repos/timdown/rangyinputs/issues/9/events","html_url":"https://github.com/timdown/rangyinputs/issues/9","id":58224586,"number":9,"title":"IE 9 Bug","user":{"login":"guinness74","id":3831953,"avatar_url":"https://avatars.githubusercontent.com/u/3831953?v=3","gravatar_id":"","url":"https://api.github.com/users/guinness74","html_url":"https://github.com/guinness74","followers_url":"https://api.github.com/users/guinness74/followers","following_url":"https://api.github.com/users/guinness74/following{/other_user}","gists_url":"https://api.github.com/users/guinness74/gists{/gist_id}","starred_url":"https://api.github.com/users/guinness74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guinness74/subscriptions","organizations_url":"https://api.github.com/users/guinness74/orgs","repos_url":"https://api.github.com/users/guinness74/repos","events_url":"https://api.github.com/users/guinness74/events{/privacy}","received_events_url":"https://api.github.com/users/guinness74/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-19T15:41:53Z","updated_at":"2015-02-22T05:12:50Z","closed_at":"2015-02-22T05:12:50Z","body":"I love this library and it works great in across all browsers, except I found an IE 9 bug in `surroundSelectedText()`. I am testing with IE 9.0.8112.16421 in Windows 7; the version shipped in the modern.ie Windows 7 IE 9 virtual machine.\r\n\r\nIf I have the following text in a <textarea> `let's wrap this text OK?` and I select `this text` from left-to-right with the mouse, I get `let's wrap <strong></strong>this text OK?` with the following function call.\r\n\r\n    function stabButtonWrapSimple(event) {\r\n        var tag = event.data.tag;\r\n\r\n        // Drupal.settings.stab.textareaId is the id including # of the element.\r\n        $(Drupal.settings.stab.textareaId).focus();\r\n\r\n        // Wrap tag around selected text.\r\n        $(Drupal.settings.stab.textareaId).surroundSelectedText(\"<\" + tag + \">\", \"</\" + tag + \">\");    \r\n    }\r\n\r\nIs this something you would / could address? I am using this code in production and haven't been able to find a workaround."}}