修正markdown编辑器

This commit is contained in:
joyqi
2013-10-18 22:50:07 +08:00
parent f9e50dd7b4
commit c32477433c
6 changed files with 31 additions and 2 deletions
+5
View File
@@ -64,6 +64,11 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
$contents['title'] = $this->request->get('title', _t('未命名页面'));
$contents['created'] = $this->getCreated();
if ($this->request->markdown && $this->options->markdown) {
$contents['text'] = '<!--markdown-->' . $contents['text'];
}
$contents = $this->pluginHandle()->write($contents, $this);
if ($this->request->is('do=publish')) {
+5
View File
@@ -556,6 +556,11 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
$contents['title'] = $this->request->get('title', _t('未命名文档'));
$contents['created'] = $this->getCreated();
if ($this->request->markdown && $this->options->markdown) {
$contents['text'] = '<!--markdown-->' . $contents['text'];
}
$contents = $this->pluginHandle()->write($contents, $this);
if ($this->request->is('do=publish')) {