{"action":"created","comment":{"url":"https://api.github.com/repos/contao/docs/pulls/comments/73866289","id":73866289,"diff_hunk":"@@ -21,6 +21,46 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['text']['eval']['rte'] =\n 'tinyCustom';\n ```\n \n+**Tag** The text below concerns the version 4.0.0 and higher.\n \n-[1]: http://tinymce.moxiecode.com\n-[2]: custom-configurations.md#customizing-the-data-container-configuration\n+![](images/tinyMCE4.jpg)\n+\n+The image shows the default configuration of the editor in the Contao default `be_tinyMCE.html5` Template.\n+To create a custom configuration, duplicate the template, add your changes and save the template as `be_tinyMCE.html5` in the template root dir. It will not work when placed inside subfolders like `/template/mytemplates/`.\n+\n+### Custom Formats\n+\n+This is how you can add custom formats to TinyMCE:\n+\n+```js\n+// Define a color:\n+  style_formats_merge: true,\n+  style_formats: [\n+    { title: 'Text Red', inline: 'span', styles: { 'color': '#d11216' }, classes: 'text-red' },\n+  ]\n+```\n+\n+Important is the line `style_formats_merge: true`.\n+This allows adding own formates without overwrighting the default formats that already exist.\n+\n+![](images/tinyMCE4Custom.jpg)\n+\n+To clean up Custom formats, you can group them inside your own format folder like this:","path":"cookbook/customizing-contao/customizing-tinymce.md","position":null,"original_position":30,"commit_id":"2cb1ece8a862f432a4fa2a125495ac2e11f35b1f","original_commit_id":"2b099c8c0d871244a3a50f27a05755fdffac1c2c","user":{"login":"christianromeni","id":1358040,"avatar_url":"https://avatars.githubusercontent.com/u/1358040?v=3","gravatar_id":"","url":"https://api.github.com/users/christianromeni","html_url":"https://github.com/christianromeni","followers_url":"https://api.github.com/users/christianromeni/followers","following_url":"https://api.github.com/users/christianromeni/following{/other_user}","gists_url":"https://api.github.com/users/christianromeni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianromeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianromeni/subscriptions","organizations_url":"https://api.github.com/users/christianromeni/orgs","repos_url":"https://api.github.com/users/christianromeni/repos","events_url":"https://api.github.com/users/christianromeni/events{/privacy}","received_events_url":"https://api.github.com/users/christianromeni/received_events","type":"User","site_admin":false},"body":"Done","created_at":"2016-08-08T12:26:53Z","updated_at":"2016-08-08T12:26:53Z","html_url":"https://github.com/contao/docs/pull/402#discussion_r73866289","pull_request_url":"https://api.github.com/repos/contao/docs/pulls/402","_links":{"self":{"href":"https://api.github.com/repos/contao/docs/pulls/comments/73866289"},"html":{"href":"https://github.com/contao/docs/pull/402#discussion_r73866289"},"pull_request":{"href":"https://api.github.com/repos/contao/docs/pulls/402"}}},"pull_request":{"url":"https://api.github.com/repos/contao/docs/pulls/402","id":80206121,"html_url":"https://github.com/contao/docs/pull/402","diff_url":"https://github.com/contao/docs/pull/402.diff","patch_url":"https://github.com/contao/docs/pull/402.patch","issue_url":"https://api.github.com/repos/contao/docs/issues/402","number":402,"state":"open","locked":false,"title":"Add Contao 4 TinyMCE customisation instructions.","user":{"login":"christianromeni","id":1358040,"avatar_url":"https://avatars.githubusercontent.com/u/1358040?v=3","gravatar_id":"","url":"https://api.github.com/users/christianromeni","html_url":"https://github.com/christianromeni","followers_url":"https://api.github.com/users/christianromeni/followers","following_url":"https://api.github.com/users/christianromeni/following{/other_user}","gists_url":"https://api.github.com/users/christianromeni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianromeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianromeni/subscriptions","organizations_url":"https://api.github.com/users/christianromeni/orgs","repos_url":"https://api.github.com/users/christianromeni/repos","events_url":"https://api.github.com/users/christianromeni/events{/privacy}","received_events_url":"https://api.github.com/users/christianromeni/received_events","type":"User","site_admin":false},"body":"This adds a how to change TinyMCE in Contao 4","created_at":"2016-08-05T08:21:40Z","updated_at":"2016-08-08T12:26:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01b6a86a4cff6e8afc1ced95d403f9b33cb76261","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/contao/docs/pulls/402/commits","review_comments_url":"https://api.github.com/repos/contao/docs/pulls/402/comments","review_comment_url":"https://api.github.com/repos/contao/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contao/docs/issues/402/comments","statuses_url":"https://api.github.com/repos/contao/docs/statuses/2cb1ece8a862f432a4fa2a125495ac2e11f35b1f","head":{"label":"christianromeni:master","ref":"master","sha":"2cb1ece8a862f432a4fa2a125495ac2e11f35b1f","user":{"login":"christianromeni","id":1358040,"avatar_url":"https://avatars.githubusercontent.com/u/1358040?v=3","gravatar_id":"","url":"https://api.github.com/users/christianromeni","html_url":"https://github.com/christianromeni","followers_url":"https://api.github.com/users/christianromeni/followers","following_url":"https://api.github.com/users/christianromeni/following{/other_user}","gists_url":"https://api.github.com/users/christianromeni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianromeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianromeni/subscriptions","organizations_url":"https://api.github.com/users/christianromeni/orgs","repos_url":"https://api.github.com/users/christianromeni/repos","events_url":"https://api.github.com/users/christianromeni/events{/privacy}","received_events_url":"https://api.github.com/users/christianromeni/received_events","type":"User","site_admin":false},"repo":{"id":59687668,"name":"docs","full_name":"christianromeni/docs","owner":{"login":"christianromeni","id":1358040,"avatar_url":"https://avatars.githubusercontent.com/u/1358040?v=3","gravatar_id":"","url":"https://api.github.com/users/christianromeni","html_url":"https://github.com/christianromeni","followers_url":"https://api.github.com/users/christianromeni/followers","following_url":"https://api.github.com/users/christianromeni/following{/other_user}","gists_url":"https://api.github.com/users/christianromeni/gists{/gist_id}","starred_url":"https://api.github.com/users/christianromeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianromeni/subscriptions","organizations_url":"https://api.github.com/users/christianromeni/orgs","repos_url":"https://api.github.com/users/christianromeni/repos","events_url":"https://api.github.com/users/christianromeni/events{/privacy}","received_events_url":"https://api.github.com/users/christianromeni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/christianromeni/docs","description":"The official Contao documentation","fork":true,"url":"https://api.github.com/repos/christianromeni/docs","forks_url":"https://api.github.com/repos/christianromeni/docs/forks","keys_url":"https://api.github.com/repos/christianromeni/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/christianromeni/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/christianromeni/docs/teams","hooks_url":"https://api.github.com/repos/christianromeni/docs/hooks","issue_events_url":"https://api.github.com/repos/christianromeni/docs/issues/events{/number}","events_url":"https://api.github.com/repos/christianromeni/docs/events","assignees_url":"https://api.github.com/repos/christianromeni/docs/assignees{/user}","branches_url":"https://api.github.com/repos/christianromeni/docs/branches{/branch}","tags_url":"https://api.github.com/repos/christianromeni/docs/tags","blobs_url":"https://api.github.com/repos/christianromeni/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/christianromeni/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/christianromeni/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/christianromeni/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/christianromeni/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/christianromeni/docs/languages","stargazers_url":"https://api.github.com/repos/christianromeni/docs/stargazers","contributors_url":"https://api.github.com/repos/christianromeni/docs/contributors","subscribers_url":"https://api.github.com/repos/christianromeni/docs/subscribers","subscription_url":"https://api.github.com/repos/christianromeni/docs/subscription","commits_url":"https://api.github.com/repos/christianromeni/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/christianromeni/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/christianromeni/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/christianromeni/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/christianromeni/docs/contents/{+path}","compare_url":"https://api.github.com/repos/christianromeni/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/christianromeni/docs/merges","archive_url":"https://api.github.com/repos/christianromeni/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/christianromeni/docs/downloads","issues_url":"https://api.github.com/repos/christianromeni/docs/issues{/number}","pulls_url":"https://api.github.com/repos/christianromeni/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/christianromeni/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/christianromeni/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/christianromeni/docs/labels{/name}","releases_url":"https://api.github.com/repos/christianromeni/docs/releases{/id}","deployments_url":"https://api.github.com/repos/christianromeni/docs/deployments","created_at":"2016-05-25T18:26:29Z","updated_at":"2016-05-25T18:26:31Z","pushed_at":"2016-08-08T12:26:07Z","git_url":"git://github.com/christianromeni/docs.git","ssh_url":"git@github.com:christianromeni/docs.git","clone_url":"https://github.com/christianromeni/docs.git","svn_url":"https://github.com/christianromeni/docs","homepage":"https://docs.contao.org/","size":13384,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"contao:master","ref":"master","sha":"ecaefc7d8acb2b5e8427d34eaa383b414abcecc2","user":{"login":"contao","id":1206136,"avatar_url":"https://avatars.githubusercontent.com/u/1206136?v=3","gravatar_id":"","url":"https://api.github.com/users/contao","html_url":"https://github.com/contao","followers_url":"https://api.github.com/users/contao/followers","following_url":"https://api.github.com/users/contao/following{/other_user}","gists_url":"https://api.github.com/users/contao/gists{/gist_id}","starred_url":"https://api.github.com/users/contao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contao/subscriptions","organizations_url":"https://api.github.com/users/contao/orgs","repos_url":"https://api.github.com/users/contao/repos","events_url":"https://api.github.com/users/contao/events{/privacy}","received_events_url":"https://api.github.com/users/contao/received_events","type":"Organization","site_admin":false},"repo":{"id":4193432,"name":"docs","full_name":"contao/docs","owner":{"login":"contao","id":1206136,"avatar_url":"https://avatars.githubusercontent.com/u/1206136?v=3","gravatar_id":"","url":"https://api.github.com/users/contao","html_url":"https://github.com/contao","followers_url":"https://api.github.com/users/contao/followers","following_url":"https://api.github.com/users/contao/following{/other_user}","gists_url":"https://api.github.com/users/contao/gists{/gist_id}","starred_url":"https://api.github.com/users/contao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contao/subscriptions","organizations_url":"https://api.github.com/users/contao/orgs","repos_url":"https://api.github.com/users/contao/repos","events_url":"https://api.github.com/users/contao/events{/privacy}","received_events_url":"https://api.github.com/users/contao/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contao/docs","description":"The official Contao documentation","fork":false,"url":"https://api.github.com/repos/contao/docs","forks_url":"https://api.github.com/repos/contao/docs/forks","keys_url":"https://api.github.com/repos/contao/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contao/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contao/docs/teams","hooks_url":"https://api.github.com/repos/contao/docs/hooks","issue_events_url":"https://api.github.com/repos/contao/docs/issues/events{/number}","events_url":"https://api.github.com/repos/contao/docs/events","assignees_url":"https://api.github.com/repos/contao/docs/assignees{/user}","branches_url":"https://api.github.com/repos/contao/docs/branches{/branch}","tags_url":"https://api.github.com/repos/contao/docs/tags","blobs_url":"https://api.github.com/repos/contao/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contao/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contao/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/contao/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contao/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/contao/docs/languages","stargazers_url":"https://api.github.com/repos/contao/docs/stargazers","contributors_url":"https://api.github.com/repos/contao/docs/contributors","subscribers_url":"https://api.github.com/repos/contao/docs/subscribers","subscription_url":"https://api.github.com/repos/contao/docs/subscription","commits_url":"https://api.github.com/repos/contao/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/contao/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/contao/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/contao/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/contao/docs/contents/{+path}","compare_url":"https://api.github.com/repos/contao/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contao/docs/merges","archive_url":"https://api.github.com/repos/contao/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contao/docs/downloads","issues_url":"https://api.github.com/repos/contao/docs/issues{/number}","pulls_url":"https://api.github.com/repos/contao/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/contao/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/contao/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contao/docs/labels{/name}","releases_url":"https://api.github.com/repos/contao/docs/releases{/id}","deployments_url":"https://api.github.com/repos/contao/docs/deployments","created_at":"2012-05-01T15:21:52Z","updated_at":"2016-08-04T20:55:28Z","pushed_at":"2016-08-08T12:26:06Z","git_url":"git://github.com/contao/docs.git","ssh_url":"git@github.com:contao/docs.git","clone_url":"https://github.com/contao/docs.git","svn_url":"https://github.com/contao/docs","homepage":"https://docs.contao.org/","size":14122,"stargazers_count":36,"watchers_count":36,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":40,"forks":72,"open_issues":40,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contao/docs/pulls/402"},"html":{"href":"https://github.com/contao/docs/pull/402"},"issue":{"href":"https://api.github.com/repos/contao/docs/issues/402"},"comments":{"href":"https://api.github.com/repos/contao/docs/issues/402/comments"},"review_comments":{"href":"https://api.github.com/repos/contao/docs/pulls/402/comments"},"review_comment":{"href":"https://api.github.com/repos/contao/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contao/docs/pulls/402/commits"},"statuses":{"href":"https://api.github.com/repos/contao/docs/statuses/2cb1ece8a862f432a4fa2a125495ac2e11f35b1f"}}}}
{"actor":{"display_login":"christianromeni"}}