Loading editor/html/js/preview.js +5 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,11 @@ var Preview = (function() { addField('authid', data.authid); addField('html', data.html); // Send selected color scheme to blog's /render var colorScheme = document.getElementById('theme-select').value || 'dark'; addField('_color_mode', 'theme'); addField('_color_scheme', colorScheme); document.body.appendChild(form); form.submit(); document.body.removeChild(form); Loading editor/src/webedit_api.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ bool webedit::Api::handleRequest(libhttppp::HttpRequest &curreq, const int tid, // Route: /api/connection/media/{connId} (POST) — proxy media commands to blog if (path.find("/api/connection/media/") == 0) { std::string connId = path.substr(21); std::string connId = path.substr(22); handleMediaBrowse(curreq, sessionid, connId); return true; } Loading Loading
editor/html/js/preview.js +5 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,11 @@ var Preview = (function() { addField('authid', data.authid); addField('html', data.html); // Send selected color scheme to blog's /render var colorScheme = document.getElementById('theme-select').value || 'dark'; addField('_color_mode', 'theme'); addField('_color_scheme', colorScheme); document.body.appendChild(form); form.submit(); document.body.removeChild(form); Loading
editor/src/webedit_api.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -274,7 +274,7 @@ bool webedit::Api::handleRequest(libhttppp::HttpRequest &curreq, const int tid, // Route: /api/connection/media/{connId} (POST) — proxy media commands to blog if (path.find("/api/connection/media/") == 0) { std::string connId = path.substr(21); std::string connId = path.substr(22); handleMediaBrowse(curreq, sessionid, connId); return true; } Loading