{"action":"opened","issue":{"url":"https://api.github.com/repos/daviferreira/medium-editor/issues/637","labels_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/637/labels{/name}","comments_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/637/comments","events_url":"https://api.github.com/repos/daviferreira/medium-editor/issues/637/events","html_url":"https://github.com/daviferreira/medium-editor/issues/637","id":80973907,"number":637,"title":"Support for CSS on different commands","user":{"login":"Veejay","id":59471,"avatar_url":"https://avatars.githubusercontent.com/u/59471?v=3","gravatar_id":"","url":"https://api.github.com/users/Veejay","html_url":"https://github.com/Veejay","followers_url":"https://api.github.com/users/Veejay/followers","following_url":"https://api.github.com/users/Veejay/following{/other_user}","gists_url":"https://api.github.com/users/Veejay/gists{/gist_id}","starred_url":"https://api.github.com/users/Veejay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Veejay/subscriptions","organizations_url":"https://api.github.com/users/Veejay/orgs","repos_url":"https://api.github.com/users/Veejay/repos","events_url":"https://api.github.com/users/Veejay/events{/privacy}","received_events_url":"https://api.github.com/users/Veejay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-26T13:56:54Z","updated_at":"2015-05-26T13:56:54Z","closed_at":null,"body":"Hi,\r\n\r\nI'd like to know if it's possible to handle say `justifyCenter` or `justifyRight` using CSS classes instead of inline style attributes?\r\n\r\nRight now, a click on justify right generates a \r\n\r\n    style=\"text-align: right\" \r\n\r\nattribute on the element, I'd rather it generated something like \r\n    \r\n    class=\"text-align-right\"\r\n\r\nwhich I could always customize at a later time. Is such a feature supported in medium-editor?\r\n\r\nWhat I tested so far:\r\n\r\n1) Looking at styleWithCss, whose name seems to indicate that it would help handle CSS styling (which it doesn't really)\r\n2) Fiddling with the selected element inside of `execActionInternal`, but that breaks undo/redo.\r\n\r\nIn general, it'd be nice to be able to customize which particular classes should be added on each element in the markup generated by medium-editor."}}