{"action":"opened","issue":{"url":"https://api.github.com/repos/fraywing/textAngular/issues/763","labels_url":"https://api.github.com/repos/fraywing/textAngular/issues/763/labels{/name}","comments_url":"https://api.github.com/repos/fraywing/textAngular/issues/763/comments","events_url":"https://api.github.com/repos/fraywing/textAngular/issues/763/events","html_url":"https://github.com/fraywing/textAngular/issues/763","id":91011618,"number":763,"title":"Regression with using multiple instances of textAngular on the same page","user":{"login":"Omer","id":144857,"avatar_url":"https://avatars.githubusercontent.com/u/144857?v=3","gravatar_id":"","url":"https://api.github.com/users/Omer","html_url":"https://github.com/Omer","followers_url":"https://api.github.com/users/Omer/followers","following_url":"https://api.github.com/users/Omer/following{/other_user}","gists_url":"https://api.github.com/users/Omer/gists{/gist_id}","starred_url":"https://api.github.com/users/Omer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Omer/subscriptions","organizations_url":"https://api.github.com/users/Omer/orgs","repos_url":"https://api.github.com/users/Omer/repos","events_url":"https://api.github.com/users/Omer/events{/privacy}","received_events_url":"https://api.github.com/users/Omer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-25T16:31:39Z","updated_at":"2015-06-25T16:31:39Z","closed_at":null,"body":"The recent version of textAngular (since Rangy became a hard dependency) appeared to introduce a regression when using multiple instances of textAngular on the same page.\r\n\r\n**Plnkr examples:**\r\n* [textAngular v1.2.2](http://plnkr.co/edit/N5ZhBPNXE9WVfb58YG7S?p=preview)\r\n* [textAngular v1.3.7](http://plnkr.co/edit/5SKbenboNQCEsTv91xSu?p=preview)\r\n\r\n**Steps to reproduce:**\r\n* Add 2 instances of textAngular to a single page.\r\n* Set the focus on the first directive.\r\n* Set the focus on the second directive.\r\n* Set the focus back to the first directive.\r\n* Write something.\r\n* Click on any of the buttons in the toolbar.\r\n* *Note how the focus is lost (and the changes are discarded) in the recent version of textAngular.*"}}