Skip to content

Commit

Permalink
改进 - 移除 editor fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Sep 20, 2016
1 parent 7dfb2a5 commit c28cf7a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 36 deletions.
1 change: 0 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ gulp.task('cc', function () {

var jsCodemirror = ['./src/main/webapp/js/lib/editor/diff_match_patch.js',
'./src/main/webapp/js/lib/editor/codemirror.js',
'./src/main/webapp/js/lib/editor/fullscreen.js',
'./src/main/webapp/js/lib/editor/placeholder.js',
'./src/main/webapp/js/lib/editor/merge.js',
'./src/main/webapp/js/overwrite/codemirror/addon/hint/show-hint.js',
Expand Down
18 changes: 5 additions & 13 deletions src/main/webapp/js/add-article.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.16.10.8, Sep 17, 2016
* @version 2.16.10.9, Sep 20, 2016
*/

/**
Expand Down Expand Up @@ -140,10 +140,7 @@ var AddArticle = {
"Ctrl-/": "autocompleteEmoji",
"Cmd-/": "autocompleteEmoji",
"Alt-S": "startAudioRecord",
"Alt-R": "endAudioRecord",
"Esc": function (cm) {
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
}
"Alt-R": "endAudioRecord"
},
toolbar: [
{name: 'bold'},
Expand All @@ -159,8 +156,7 @@ var AddArticle = {
{name: 'redo'},
{name: 'undo'},
'|',
{name: 'preview'},
{name: 'fullscreen'}
{name: 'preview'}
],
status: false
});
Expand Down Expand Up @@ -315,18 +311,14 @@ var AddArticle = {
{name: 'redo'},
{name: 'undo'},
'|',
{name: 'preview'},
{name: 'fullscreen'}
{name: 'preview'}
],
extraKeys: {
"Alt-/": "autocompleteUserName",
"Ctrl-/": "autocompleteEmoji",
"Cmd-/": "autocompleteEmoji",
"Alt-S": "startAudioRecord",
"Alt-R": "endAudioRecord",
"Esc": function (cm) {
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
}
"Alt-R": "endAudioRecord"
},
status: false
});
Expand Down
8 changes: 2 additions & 6 deletions src/main/webapp/js/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,14 @@ var Comment = {
{name: 'redo'},
{name: 'undo'},
'|',
{name: 'preview'},
{name: 'fullscreen'}
{name: 'preview'}
],
extraKeys: {
"Alt-/": "autocompleteUserName",
"Cmd-/": "autocompleteEmoji",
"Ctrl-/": "autocompleteEmoji",
"Alt-S": "startAudioRecord",
"Alt-R": "endAudioRecord",
"Esc": function (cm) {
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
}
"Alt-R": "endAudioRecord"
},
status: false
});
Expand Down
10 changes: 3 additions & 7 deletions src/main/webapp/js/chat-room.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @fileoverview 聊天室
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.1.0.1, Sep 17, 2016
* @version 1.1.0.2, Sep 20, 2016
*/

/**
Expand Down Expand Up @@ -72,18 +72,14 @@ var ChatRoom = {
{name: 'redo'},
{name: 'undo'},
'|',
{name: 'preview'},
{name: 'fullscreen'}
{name: 'preview'}
],
extraKeys: {
"Alt-/": "autocompleteUserName",
"Cmd-/": "autocompleteEmoji",
"Ctrl-/": "autocompleteEmoji",
"Alt-S": "startAudioRecord",
"Alt-R": "endAudioRecord",
"Esc": function (cm) {
cm.setOption("fullScreen", !cm.getOption("fullScreen"));
}
"Alt-R": "endAudioRecord"
},
status: false
});
Expand Down
16 changes: 8 additions & 8 deletions src/main/webapp/js/lib/compress/article-libs.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/main/webapp/js/lib/editor/codemirror.min.js

Large diffs are not rendered by default.

0 comments on commit c28cf7a

Please sign in to comment.