Comments (4)
修改codeEditor事件change,代码如下,800毫秒延时
codeEditor.on("change", function(cm, changeObj) {
if (_this.parseTimer != null) clearTimeout(_this.parseTimer);
_this.parseTimer = setTimeout(function(){
_this.saveToTextareas()
},800);
});
from editor.md.
谢谢你的建议,可以考虑,这个可以供用户选择。
不过需要说的是目前Editor.md是零延迟,即时解析,如果解析量太多(并且开启支持TeX等Markdown扩展语法的情况下),才会出现所谓的延迟现象。
from editor.md.
@byhgj 新版本会增加一个延迟解析预览的机制,可供用户自定义,特别是用户输入太快的场景。
另外,你给我一个启发,利用延迟机制解决了一个老问题,即当输入速度过快时,解析Flowchart会出错的问题,谢谢!
from editor.md.
@v1.4.0 added.
from editor.md.
Related Issues (20)
- [TOC]目录要怎么样解析成html
- 代码块中包含<textarea><textarea>标签后代码丢失
- 如何正确开启Tex功能? HOT 2
- 标题问题
- Hola
- Unable to serialize formula
- wrong table view
- Katex无法识别公式编号问题
- 加载错误
- 示例图片加载错误
- Spellcheck not working
- 使用HTML的table之后会自动在顶部加很多br HOT 2
- 带基础认证信息的链接问题
- Fullscreen Error
- emoji 怎么在html中替换
- Make left side monospace
- There is an XSS on the editor.md.
- Chrome extension to replace GitHub Markdown editor?
- I want add new block quoate syntax to editor md
- 引入之后一直转圈 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editor.md.