diff --git a/rails/lib/th_file.rb b/rails/lib/th_file.rb index 0beebdfd..8ebbcff4 100644 --- a/rails/lib/th_file.rb +++ b/rails/lib/th_file.rb @@ -139,6 +139,7 @@ def apply_classic_mods(site_name, for_download:, is_logged_in:) }, # Used in the ThostUploadPlugin to ensure we don't render in readonly mode + # and to show the 'save to tiddlyhost' button 'TiddlyHostIsLoggedIn' => { text: status_is_logged_in(is_logged_in:, for_download:), modifier: 'TiddlyHost', diff --git a/rails/tw_content/plugins/thost_upload_plugin.js.erb b/rails/tw_content/plugins/thost_upload_plugin.js.erb index 65a41838..d9d3b519 100644 --- a/rails/tw_content/plugins/thost_upload_plugin.js.erb +++ b/rails/tw_content/plugins/thost_upload_plugin.js.erb @@ -200,10 +200,10 @@ if (config.shadowTiddlers.TiddlyHostIsLoggedIn == "yes") { // set it here to make sure TW is editable, unlike window.showBackstage // which is set after window.readOnly = false -} -// Add 'upload to tiddlyhost' button -config.shadowTiddlers.SideBarOptions = config.shadowTiddlers.SideBarOptions - .replace(/(<>)/,"$1<>"); + // Add the 'save to tiddlyhost' button after the regular save button + config.shadowTiddlers.SideBarOptions = config.shadowTiddlers.SideBarOptions + .replace(/(<>)/,"$1<>"); +} //}}}