svn: /web/doc-editor/trunk/js/ux/ Ext.ux.CodeMirror.js
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Tue, 22 Dec 2009 13:04:11 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=292476
Log:
all spellCheck into the editor ; disable Scanning when the editor is on readyOnly mode
Changed paths:
U web/doc-editor/trunk/js/ux/Ext.ux.CodeMirror.js
Modified: web/doc-editor/trunk/js/ux/Ext.ux.CodeMirror.js
===================================================================
--- web/doc-editor/trunk/js/ux/Ext.ux.CodeMirror.js 2009-12-22 11:41:35 UTC (rev 292475)
+++ web/doc-editor/trunk/js/ux/Ext.ux.CodeMirror.js 2009-12-22 13:04:11 UTC (rev 292476)
@@ -87,13 +87,14 @@
indentUnit: 1,
id:this.id,
lineNumbers: true,
- continuousScanning: 500,
+ continuousScanning: (this.readOnly) ? false : 500,
cursorActivity: CursorActivity,
stylesheet: this.parserStylesheet,
path: "js/ux/codemirror/js/",
obj: this,
initCallback: this.onInit,
- autoMatchParens: true
+ autoMatchParens: true,
+ disableSpellcheck: false
});
var scope = this;