{"action":"created","issue":{"url":"https://api.github.com/repos/extras-evolution/tinymce4-for-modx-evo/issues/27","repository_url":"https://api.github.com/repos/extras-evolution/tinymce4-for-modx-evo","labels_url":"https://api.github.com/repos/extras-evolution/tinymce4-for-modx-evo/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/extras-evolution/tinymce4-for-modx-evo/issues/27/comments","events_url":"https://api.github.com/repos/extras-evolution/tinymce4-for-modx-evo/issues/27/events","html_url":"https://github.com/extras-evolution/tinymce4-for-modx-evo/issues/27","id":156283466,"number":27,"title":"Wrong var name in bridge.tinymce4.inc.php","user":{"login":"janniconl","id":1488614,"avatar_url":"https://avatars.githubusercontent.com/u/1488614?v=3","gravatar_id":"","url":"https://api.github.com/users/janniconl","html_url":"https://github.com/janniconl","followers_url":"https://api.github.com/users/janniconl/followers","following_url":"https://api.github.com/users/janniconl/following{/other_user}","gists_url":"https://api.github.com/users/janniconl/gists{/gist_id}","starred_url":"https://api.github.com/users/janniconl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janniconl/subscriptions","organizations_url":"https://api.github.com/users/janniconl/orgs","repos_url":"https://api.github.com/users/janniconl/repos","events_url":"https://api.github.com/users/janniconl/events{/privacy}","received_events_url":"https://api.github.com/users/janniconl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-23T13:41:24Z","updated_at":"2016-05-23T18:00:21Z","closed_at":null,"body":"On r.112\r\n````\r\n        if (isset($this->pluginParams['styleFormats'])) {\r\n            $styles_formats = explode('|', $this->pluginParams['styleFormats']);\r\n````\r\n\r\nShould be:\r\n````\r\n        if (isset($this->pluginParams['pluginStyleFormats'])) {\r\n            $styles_formats = explode('|', $this->pluginParams['pluginStyleFormats']);\r\n````\r\n\r\n(So take the value from: pluginStyleFormats)\r\n\r\nOtherwise the styles you've added to the plugin configuration are not loaded.."},"comment":{"url":"https://api.github.com/repos/extras-evolution/tinymce4-for-modx-evo/issues/comments/221047357","html_url":"https://github.com/extras-evolution/tinymce4-for-modx-evo/issues/27#issuecomment-221047357","issue_url":"https://api.github.com/repos/extras-evolution/tinymce4-for-modx-evo/issues/27","id":221047357,"user":{"login":"Deesen","id":8569221,"avatar_url":"https://avatars.githubusercontent.com/u/8569221?v=3","gravatar_id":"","url":"https://api.github.com/users/Deesen","html_url":"https://github.com/Deesen","followers_url":"https://api.github.com/users/Deesen/followers","following_url":"https://api.github.com/users/Deesen/following{/other_user}","gists_url":"https://api.github.com/users/Deesen/gists{/gist_id}","starred_url":"https://api.github.com/users/Deesen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deesen/subscriptions","organizations_url":"https://api.github.com/users/Deesen/orgs","repos_url":"https://api.github.com/users/Deesen/repos","events_url":"https://api.github.com/users/Deesen/events{/privacy}","received_events_url":"https://api.github.com/users/Deesen/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T18:00:21Z","updated_at":"2016-05-23T18:00:21Z","body":"To make them work you can remove `function bridge_style_formats()` completely from `bridge.tinymce4.inc.php`, means the parameter \"style_formats\" gets not modified via PHP before parsing so it will be added exactly like you put it in your theme. For example\r\n\r\n    $this->set('style_formats', '[\r\n      {title: \"Bold text\", inline: \"b\"},\r\n      {title: \"Red text\", inline: \"span\", styles: {color: \"#ff0000\"}},\r\n      {title: \"Red header\", block: \"h1\", styles: {color: \"#ff0000\"}},\r\n      {title: \"Example 1\", inline: \"span\", classes: \"example1\"},\r\n      {title: \"Example 2\", inline: \"span\", classes: \"example2\"},\r\n      {title: \"Table styles\"},\r\n      {title: \"Table row 1\", selector: \"tr\", classes: \"tablerow1\"}\r\n    ]', 'json'); \r\n\r\nPlease pay attention to use only \" not ' for your JSON-string like above example.\r\n\r\n![tiny](https://cloud.githubusercontent.com/assets/8569221/15479496/c729fdc4-2120-11e6-80ef-fd5eebfbabf5.png)\r\n"}}
{"actor":{"display_login":"Deesen"}}