diff --git a/admin/js/markdown.js b/admin/js/markdown.js index 35413378..0ebed704 100644 --- a/admin/js/markdown.js +++ b/admin/js/markdown.js @@ -3314,7 +3314,7 @@ else function PanelCollection(postfix) { this.buttonBar = doc.getElementById("wmd-button-bar" + postfix); this.preview = doc.getElementById("wmd-preview" + postfix); - this.input = doc.getElementById("wmd-input" + postfix); + this.input = doc.getElementById("text"); }; // Returns true if the DOM element is visible, false if it's hidden. diff --git a/admin/write-js.php b/admin/write-js.php index 87a74f56..9d1ef9ca 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -156,4 +156,53 @@ $(document).ready(function() { }); +markdown && (!$content->have() || $content->isMarkdown)): ?> + + + diff --git a/admin/write-page.php b/admin/write-page.php index 8037c0c0..5e03700d 100644 --- a/admin/write-page.php +++ b/admin/write-page.php @@ -41,8 +41,6 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);
- -- bolditaliclinkquotedelimguloltitlecodepremorehr -
@@ -57,7 +42,6 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);
-