codemirror-ui icon indicating copy to clipboard operation
codemirror-ui copied to clipboard

Javascript error when editing in editor created by CodeMirrorUI lib

Open jits1712 opened this issue 12 years ago • 4 comments

Hi,

I created editor using CodeMirrorUI lab (downloaded latest version of CodeMirrorUI - jagthedrummer-codemirror-ui-0.0.14-36-g4ec880c)

                        //then create the editor
                        var cmeditor = new CodeMirrorUI(document.getElementById("code_1"),
                                {
                                path:'js/codemirror-ui/js',
                                imagePath: 'js/codemirror-ui/images/silk'
                                } 
                                ,
                                {
                                  lineNumbers: true,
                                  matchBrackets: true,
                                  mode:'text/x-java',
                                });

and when try to edit someting in editor was getting below error

TypeError: element is undefined [Break On This Error]

var m = element.className.match(this.classNameRegex(className))

codemirror-ui.js (line 329)


Please help me ASAP.

Thanks in advanced

jits1712 avatar Oct 05 '12 17:10 jits1712

This is happning with index.html page of CodeMirrorUI lib too.

jits1712 avatar Oct 05 '12 17:10 jits1712

I am getting issue when try to integrate CodeMirrorUI in my app.

jits1712 avatar Oct 05 '12 17:10 jits1712

Hmm... the index.html page is working for me. What browser and OS are you using?

jagthedrummer avatar Oct 05 '12 18:10 jagthedrummer

I am using Window Vista Home Basic(32 bit) and browser Internet Explorer 9 and FireFox 15.0.1

On Fri, Oct 5, 2012 at 11:53 PM, Jeremy Green [email protected]:

Hmm... the index.html page is working for me. What browser and OS are you using?

— Reply to this email directly or view it on GitHubhttps://github.com/jagthedrummer/codemirror-ui/issues/18#issuecomment-9184994.

jits1712 avatar Oct 06 '12 03:10 jits1712