diff --git a/css/daux-blue.css b/css/daux-blue.css index 0cb6335..92fd22f 100644 --- a/css/daux-blue.css +++ b/css/daux-blue.css @@ -6576,6 +6576,34 @@ body { } } /* =========================================================================================== +Markdown editor +============================================================================================== */ +.editor { + position: absolute; + top: 0; + left: 0; + right: 0; + background: white; + padding: 20px; + padding-bottom: 100px; + min-height: 100%; + height: auto; + display: none; +} +.editor h3 { + width: 100%!important; +} +#markdown_editor { + width: 85%; + margin: 0 auto; + padding: 10px; + height: auto; + font-size: 16px; + min-height: 100px; + font-family: "Ubuntu Mono", "Consolas", monospace; + display: block; +} +/* =========================================================================================== Componenets ============================================================================================== */ a { @@ -6732,8 +6760,7 @@ code { .page-header h1 { margin-top: 0px; } -/* To be applied to the same element as page-header for sites that have sub-heading content such as Last modified time */ -.page-header .sub-heading { +.page-header sub-heading { padding: 0px, 0px, 20px; } pre { diff --git a/css/daux-green.css b/css/daux-green.css index 3e2b565..9112282 100644 --- a/css/daux-green.css +++ b/css/daux-green.css @@ -6576,6 +6576,34 @@ body { } } /* =========================================================================================== +Markdown editor +============================================================================================== */ +.editor { + position: absolute; + top: 0; + left: 0; + right: 0; + background: white; + padding: 20px; + padding-bottom: 100px; + min-height: 100%; + height: auto; + display: none; +} +.editor h3 { + width: 100%!important; +} +#markdown_editor { + width: 85%; + margin: 0 auto; + padding: 10px; + height: auto; + font-size: 16px; + min-height: 100px; + font-family: "Ubuntu Mono", "Consolas", monospace; + display: block; +} +/* =========================================================================================== Componenets ============================================================================================== */ a { @@ -6732,8 +6760,7 @@ code { .page-header h1 { margin-top: 0px; } -/* To be applied to the same element as page-header for sites that have sub-heading content such as Last modified time */ -.page-header .sub-heading { +.page-header sub-heading { padding: 0px, 0px, 20px; } pre { diff --git a/css/daux-navy.css b/css/daux-navy.css index 092a138..369cf99 100644 --- a/css/daux-navy.css +++ b/css/daux-navy.css @@ -6576,6 +6576,34 @@ body { } } /* =========================================================================================== +Markdown editor +============================================================================================== */ +.editor { + position: absolute; + top: 0; + left: 0; + right: 0; + background: white; + padding: 20px; + padding-bottom: 100px; + min-height: 100%; + height: auto; + display: none; +} +.editor h3 { + width: 100%!important; +} +#markdown_editor { + width: 85%; + margin: 0 auto; + padding: 10px; + height: auto; + font-size: 16px; + min-height: 100px; + font-family: "Ubuntu Mono", "Consolas", monospace; + display: block; +} +/* =========================================================================================== Componenets ============================================================================================== */ a { @@ -6732,8 +6760,7 @@ code { .page-header h1 { margin-top: 0px; } -/* To be applied to the same element as page-header for sites that have sub-heading content such as Last modified time */ -.page-header .sub-heading { +.page-header sub-heading { padding: 0px, 0px, 20px; } pre { diff --git a/css/daux-red.css b/css/daux-red.css index 84a0c78..3c9874a 100644 --- a/css/daux-red.css +++ b/css/daux-red.css @@ -6576,6 +6576,34 @@ body { } } /* =========================================================================================== +Markdown editor +============================================================================================== */ +.editor { + position: absolute; + top: 0; + left: 0; + right: 0; + background: white; + padding: 20px; + padding-bottom: 100px; + min-height: 100%; + height: auto; + display: none; +} +.editor h3 { + width: 100%!important; +} +#markdown_editor { + width: 85%; + margin: 0 auto; + padding: 10px; + height: auto; + font-size: 16px; + min-height: 100px; + font-family: "Ubuntu Mono", "Consolas", monospace; + display: block; +} +/* =========================================================================================== Componenets ============================================================================================== */ a { @@ -6732,8 +6760,7 @@ code { .page-header h1 { margin-top: 0px; } -/* To be applied to the same element as page-header for sites that have sub-heading content such as Last modified time */ -.page-header .sub-heading { +.page-header sub-heading { padding: 0px, 0px, 20px; } pre { diff --git a/index.php b/index.php index 3a1d8fd..16d5021 100644 --- a/index.php +++ b/index.php @@ -89,10 +89,14 @@ if (count($options['languages']) > 0 && count($url_params) > 0 && strlen($url_pa $tree = get_tree($base_path, $base_url, '', true, $language); - - $page = load_page($tree, $url_params); +// Handle AJAX requests +if(isset($_POST["markdown"]) && $options["file_editor"] === true) { + handle_editor_post($_POST, $page); + die; +} + // If a timezone has been set in the config file, override the default PHP timezone for this application. if(isset($options['timezone'])) { @@ -147,6 +151,11 @@ if ($homepage && $homepage_url !== '/') { + + + + +