Bump codemirror 5 plugin version to 5.65.19 (#9114)

* Bump codemirror 5 plugin version to 5.65.19

* Update autocomplete

* Update closebrackets

* Update fullscreen

* Update keymap

* Update modes

* Update search

* Update trailingspace

* Fix broken markdown mode

* Add all codemirror plugins to codemirrordemo edition
This commit is contained in:
Leilei332
2025-06-28 23:18:42 +08:00
committed by GitHub
parent 2137444d5a
commit cd480de280
36 changed files with 41 additions and 193 deletions

View File

@@ -1,3 +1 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/LICENSE
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(i){"use strict";i.defineOption("fullScreen",!1,function(e,t,o){var r,l;o==i.Init&&(o=!1),!o!=!t&&(t?(l=(r=e).getWrapperElement(),r.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:l.style.width,height:l.style.height},l.style.width="",l.style.height="auto",l.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",r.refresh()):function(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var o=e.state.fullScreenRestore;t.style.width=o.width,t.style.height=o.height,window.scrollTo(o.scrollLeft,o.scrollTop),e.refresh()}(e))})});
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(r){"use strict";r.defineOption("fullScreen",!1,function(e,t,o){!(o=o==r.Init?!1:o)!=!t&&(t?(t=(o=e).getWrapperElement(),o.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",o.refresh()):((o=(t=e).getWrapperElement()).className=o.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="",e=t.state.fullScreenRestore,o.style.width=e.width,o.style.height=e.height,window.scrollTo(e.scrollLeft,e.scrollTop),t.refresh()))})});