diff --git a/admin/editor-js.php b/admin/editor-js.php index 366ea958..9ce6f5c7 100644 --- a/admin/editor-js.php +++ b/admin/editor-js.php @@ -168,7 +168,17 @@ $(document).ready(function () { markdownEditor($content); ?> - var input = $('#text'), th = textarea.height(), ph = preview.height(); + var input = $('#text'), th = textarea.height(), ph = preview.height(), + uploadBtn = $('') + .prependTo('.submit .right') + .click(function() { + $(this).toggleClass('active'); + $('.tab-content').toggleClass('hidden'); + $('.typecho-option-tabs li').toggleClass('active'); + + return false; + }); editor.hooks.chain('enterFakeFullScreen', function () { th = textarea.height(); diff --git a/admin/write-js.php b/admin/write-js.php index 1f353405..70240035 100644 --- a/admin/write-js.php +++ b/admin/write-js.php @@ -256,15 +256,6 @@ $(document).ready(function() { return false; }); - - // 全屏上传按钮控制 - $('#btn-fullscreen-upload').click(function() { - $(this).toggleClass('active'); - $('.tab-content').toggleClass('hidden'); - $('.typecho-option-tabs li').toggleClass('active'); - - return false; - }); }); diff --git a/admin/write-page.php b/admin/write-page.php index 54d68c3f..c1ec9223 100644 --- a/admin/write-page.php +++ b/admin/write-page.php @@ -40,8 +40,7 @@ Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page);

- - + diff --git a/admin/write-post.php b/admin/write-post.php index 18912e2d..caef382c 100644 --- a/admin/write-post.php +++ b/admin/write-post.php @@ -46,7 +46,6 @@ Typecho_Widget::widget('Widget_Contents_Post_Edit')->to($post);

-