diff --git a/app/views/shared/tiny_mce.rhtml b/app/views/shared/tiny_mce.rhtml
index 4077435..0d500e3 100644
--- a/app/views/shared/tiny_mce.rhtml
+++ b/app/views/shared/tiny_mce.rhtml
@@ -10,6 +10,7 @@ tinyMCE.init({
theme : "advanced",
relative_urls : false,
remove_script_host : true,
+ document_base_url : <%= environment.top_url.to_json %>,
plugins: myplugins,
theme_advanced_toolbar_location : "top",
theme_advanced_layout_manager: 'SimpleLayout',
--
libgit2 0.21.2