svn: /web/doc-editor/trunk/js/ux/ Ext.ux.CodeMirror.js

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Fri, 04 Dec 2009 22:13:38 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291722

Log:
Fire cmchange when we insert a tag from the menu

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-04 22:12:17 UTC (rev 291721)
+++ web/doc-editor/trunk/js/ux/Ext.ux.CodeMirror.js	2009-12-04 22:13:38 UTC (rev 291722)
@@ -139,6 +139,7 @@
     insertIntoLine : function(line, position, text) {
      var lineObj = this.mirror.nthLine(line);
      this.mirror.insertIntoLine(lineObj, position, text);
+     this.fireEvent('cmchange');
     },

     scrollTo : function(scrollY) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.