{"action":"created","issue":{"url":"https://api.github.com/repos/liferay/alloy-editor/issues/535","repository_url":"https://api.github.com/repos/liferay/alloy-editor","labels_url":"https://api.github.com/repos/liferay/alloy-editor/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/liferay/alloy-editor/issues/535/comments","events_url":"https://api.github.com/repos/liferay/alloy-editor/issues/535/events","html_url":"https://github.com/liferay/alloy-editor/issues/535","id":158623518,"number":535,"title":"Buttons do not work properly when an attribute is added.","user":{"login":"qasid","id":18445645,"avatar_url":"https://avatars.githubusercontent.com/u/18445645?v=3","gravatar_id":"","url":"https://api.github.com/users/qasid","html_url":"https://github.com/qasid","followers_url":"https://api.github.com/users/qasid/followers","following_url":"https://api.github.com/users/qasid/following{/other_user}","gists_url":"https://api.github.com/users/qasid/gists{/gist_id}","starred_url":"https://api.github.com/users/qasid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qasid/subscriptions","organizations_url":"https://api.github.com/users/qasid/orgs","repos_url":"https://api.github.com/users/qasid/repos","events_url":"https://api.github.com/users/qasid/events{/privacy}","received_events_url":"https://api.github.com/users/qasid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/liferay/alloy-editor/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/liferay/alloy-editor/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-06T08:19:50Z","updated_at":"2016-06-08T06:31:59Z","closed_at":null,"body":"When  \"id\" or any attribute is added to an element (strong,italic,underline), it doesn't work properly i.e. \r\nWhen a style (e.g Bold) is applied using strong (as implemented in Alloy editor). In this case once selection is set to bold and an \"id\" attribute is appended in the strong tag. Due to this user cannot set selection back to normal style, instead when bold button is clicked another strong tag is added and this behavior continues if button is clicked multiple times.\r\nHowever using \"span\" element (by defining in ck-editor config.js ) resolves this issue but then the state of buttons cannot be preserved.(as reported [here](https://github.com/liferay/alloy-editor/issues/533)).\r\n\r\nSame is the case with Underline and Italic.\r\n"},"comment":{"url":"https://api.github.com/repos/liferay/alloy-editor/issues/comments/224501332","html_url":"https://github.com/liferay/alloy-editor/issues/535#issuecomment-224501332","issue_url":"https://api.github.com/repos/liferay/alloy-editor/issues/535","id":224501332,"user":{"login":"jbalsas","id":905006,"avatar_url":"https://avatars.githubusercontent.com/u/905006?v=3","gravatar_id":"","url":"https://api.github.com/users/jbalsas","html_url":"https://github.com/jbalsas","followers_url":"https://api.github.com/users/jbalsas/followers","following_url":"https://api.github.com/users/jbalsas/following{/other_user}","gists_url":"https://api.github.com/users/jbalsas/gists{/gist_id}","starred_url":"https://api.github.com/users/jbalsas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbalsas/subscriptions","organizations_url":"https://api.github.com/users/jbalsas/orgs","repos_url":"https://api.github.com/users/jbalsas/repos","events_url":"https://api.github.com/users/jbalsas/events{/privacy}","received_events_url":"https://api.github.com/users/jbalsas/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T06:31:59Z","updated_at":"2016-06-08T06:31:59Z","body":"This is probably the same behaviour we had to fix for AlloyEditor to work with YUI3. See https://github.com/liferay/alloy-editor/issues/399 for more information."}}
{"actor":{"display_login":"jbalsas"}}