# codemirror-fullscreen **Repository Path**: raining_field/codemirror-fullscreen ## Basic Information - **Project Name**: codemirror-fullscreen - **Description**: codemirror 全屏插件 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-08 - **Last Updated**: 2021-11-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # codemirror-fullscreen codemirror全屏插件,可以让编辑器全屏展示,默认快捷键F11,增加一个编辑器指令**fullscreen**。 ## 示例代码 ```javascript import React from 'react' import CodeMirror from 'react-codemirror' // 这里应是你项目中真实文件路径 import './addon/fullscreen/index' class Demo extends React.PureComponent { render() { const options = { fullscreen: true, } // 默认绑定F11为快捷键,可以通过下面属性关闭 // fullscreen: { noBind: true } // return ( ) } } ``` ## 关于源码 源码位于**src/fullscreen.ts**,非常简单,可根据你的需求任意修改后打包,默认输出为**CommonJS**,其他格式请参阅 [rollup.js](https://www.rollupjs.com/guide/big-list-of-options)