{"action":"created","issue":{"url":"https://api.github.com/repos/modxcms/tinymce-rte/issues/31","labels_url":"https://api.github.com/repos/modxcms/tinymce-rte/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/modxcms/tinymce-rte/issues/31/comments","events_url":"https://api.github.com/repos/modxcms/tinymce-rte/issues/31/events","html_url":"https://github.com/modxcms/tinymce-rte/issues/31","id":106016428,"number":31,"title":"Default media source in contexts not working with the resource browser","user":{"login":"mdehaan","id":581336,"avatar_url":"https://avatars.githubusercontent.com/u/581336?v=3","gravatar_id":"","url":"https://api.github.com/users/mdehaan","html_url":"https://github.com/mdehaan","followers_url":"https://api.github.com/users/mdehaan/followers","following_url":"https://api.github.com/users/mdehaan/following{/other_user}","gists_url":"https://api.github.com/users/mdehaan/gists{/gist_id}","starred_url":"https://api.github.com/users/mdehaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdehaan/subscriptions","organizations_url":"https://api.github.com/users/mdehaan/orgs","repos_url":"https://api.github.com/users/mdehaan/repos","events_url":"https://api.github.com/users/mdehaan/events{/privacy}","received_events_url":"https://api.github.com/users/mdehaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T13:57:02Z","updated_at":"2016-01-27T03:05:41Z","closed_at":null,"body":"For TinyMCE, TinyMCE Rich Text Editor 1.1.0-pl, FCK editor and all other WYSIWYG the resource browser doesn't show the default media source that is set in a context.\r\n\r\nThis is the fix for FCK, but with a little modification, this also works for TinyMCE, i've tested it....\r\n\r\nhttp://forums.modx.com/thread/87320/default-media-source-in-contexts-not-working-with-the-resource-browser\r\n\r\nhttps://github.com/modxcms/revolution/issues/12648"},"comment":{"url":"https://api.github.com/repos/modxcms/tinymce-rte/issues/comments/175361182","html_url":"https://github.com/modxcms/tinymce-rte/issues/31#issuecomment-175361182","issue_url":"https://api.github.com/repos/modxcms/tinymce-rte/issues/31","id":175361182,"user":{"login":"lokamaya","id":39824,"avatar_url":"https://avatars.githubusercontent.com/u/39824?v=3","gravatar_id":"","url":"https://api.github.com/users/lokamaya","html_url":"https://github.com/lokamaya","followers_url":"https://api.github.com/users/lokamaya/followers","following_url":"https://api.github.com/users/lokamaya/following{/other_user}","gists_url":"https://api.github.com/users/lokamaya/gists{/gist_id}","starred_url":"https://api.github.com/users/lokamaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokamaya/subscriptions","organizations_url":"https://api.github.com/users/lokamaya/orgs","repos_url":"https://api.github.com/users/lokamaya/repos","events_url":"https://api.github.com/users/lokamaya/events{/privacy}","received_events_url":"https://api.github.com/users/lokamaya/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T03:05:41Z","updated_at":"2016-01-27T03:05:41Z","body":"Complete solution could be:\r\n\r\n- add a new system setting to transport package: tinymce_media_source (default: 1)\r\n- edit tinymcrte.js line 66, and change **default_media_source** to **tinymce_media_source**, also add context to it\r\n***\r\nurl: MODx.config['manager_url'] + 'index.php?a=' + MODx.action['browser'] + '&source=' + MODx.config['tinymce_media_source'] + '&ctx=' + MODx.config['wctx'],\r\n***\r\n\r\nSo, this addon did not depend on default_media_source setting..."}}