{"action":"created","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/982","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/982/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/982/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/982","id":122095662,"number":982,"title":"The useClasses option does not properly inline image alignment styles","user":{"login":"chrisdavies","id":833377,"avatar_url":"https://avatars.githubusercontent.com/u/833377?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdavies","html_url":"https://github.com/chrisdavies","followers_url":"https://api.github.com/users/chrisdavies/followers","following_url":"https://api.github.com/users/chrisdavies/following{/other_user}","gists_url":"https://api.github.com/users/chrisdavies/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdavies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdavies/subscriptions","organizations_url":"https://api.github.com/users/chrisdavies/orgs","repos_url":"https://api.github.com/users/chrisdavies/repos","events_url":"https://api.github.com/users/chrisdavies/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdavies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-14T17:56:12Z","updated_at":"2015-12-14T18:00:19Z","closed_at":null,"body":"When the `useClasses` option is false, changing an image alignment does not produce inline-styles. For example, here is what I get when I try to right-align an image:\r\n\r\n`style=\"cursor: pointer;\" class=\"fr-dii fr-fir\">`\r\n\r\nSo, it is putting some styles inline, but not the alignment itself.\r\n\r\nHere is how I am initializing my editor:\r\n\r\n```\r\nvar buttons = [\r\n      'bold', 'italic' , '|',\r\n      'paragraphFormat', '|',\r\n      'align', '|',\r\n      'formatOL', 'formatUL', '|',\r\n      'outdent', 'indent', '|',\r\n      'insertLink', 'blockquote', 'insertHR', 'filepicker', '|',\r\n      'html'];\r\n\r\n    self.$editor.froalaEditor({\r\n      placeholderText: 'Whatevz...',\r\n      heightMin: 200,\r\n      theme: 'custom',\r\n      codeMirror: true,\r\n      imagePaste: false,\r\n      useClasses: false,\r\n      codeMirrorOptions: {\r\n        indentWithTabs: true,\r\n        lineNumbers: true,\r\n        lineWrapping: true,\r\n        mode: 'text/html',\r\n        tabMode: 'indent',\r\n        tabSize: 2\r\n      },\r\n      toolbarStickyOffset: 0,\r\n      toolbarButtonsMD: buttons,\r\n      toolbarButtonsSM: buttons,\r\n      toolbarButtonsXS: buttons,\r\n      toolbarButtons: buttons,\r\n      imageDefaultAlign: 'left',\r\n      imageDefaultWidth: 0,\r\n      imageEditButtons: [\r\n        'imageAlign', 'imageRemove', '|',\r\n        'imageLink', 'linkOpen', 'linkEdit', 'linkRemove'],\r\n      linkAlwaysBlank: true,\r\n      linkInsertButtons: ['linkBack'],\r\n      linkEditButtons: ['linkOpen', 'linkEdit', 'linkRemove'],\r\n      shortcutsEnabled: ['bold', 'italic', 'undo', 'redo'],\r\n      paragraphFormat: {\r\n        N: 'Normal',\r\n        H1: 'Heading 1',\r\n        H2: 'Heading 2',\r\n        H3: 'Heading 3',\r\n      }\r\n    });\r\n```\r\n\r\nBrowser: Crome (latest) on Mac OSX (latest) using Froala 2.x"},"comment":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/comments/164511203","html_url":"https://github.com/froala/wysiwyg-editor/issues/982#issuecomment-164511203","issue_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/982","id":164511203,"user":{"login":"stefanneculai","id":637004,"avatar_url":"https://avatars.githubusercontent.com/u/637004?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanneculai","html_url":"https://github.com/stefanneculai","followers_url":"https://api.github.com/users/stefanneculai/followers","following_url":"https://api.github.com/users/stefanneculai/following{/other_user}","gists_url":"https://api.github.com/users/stefanneculai/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanneculai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanneculai/subscriptions","organizations_url":"https://api.github.com/users/stefanneculai/orgs","repos_url":"https://api.github.com/users/stefanneculai/repos","events_url":"https://api.github.com/users/stefanneculai/events{/privacy}","received_events_url":"https://api.github.com/users/stefanneculai/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T18:00:19Z","updated_at":"2015-12-14T18:00:19Z","body":"Could you check this with version 2.0.5 (master)? Also, are you including any CSS style from remote locations over HTTPS?"}}