From ecc3581106fe736e82b8c2d40ad53bed280b074e Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 30 Sep 2013 15:25:06 +0800 Subject: [PATCH] Domain absolute url for tinymce files --- app/assets/javascripts/tinymce_orbit.js.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/assets/javascripts/tinymce_orbit.js.erb b/app/assets/javascripts/tinymce_orbit.js.erb index d73d77682..569852f93 100644 --- a/app/assets/javascripts/tinymce_orbit.js.erb +++ b/app/assets/javascripts/tinymce_orbit.js.erb @@ -15,6 +15,11 @@ function load_tinymce() { theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : true, + // Domain Absolute URLs + relative_urls : false, + remove_script_host : false, + document_base_url: window.location.protocol + '//' + window.location.host, + // Skin options skin : "o2k7", skin_variant : "silver",