Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript error when editing in editor created by CodeMirrorUI lib #18

Open
jits1712 opened this issue Oct 5, 2012 · 4 comments
Open

Comments

@jits1712
Copy link

jits1712 commented Oct 5, 2012

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 jits1712 closed this as completed Oct 5, 2012
@jits1712 jits1712 reopened this Oct 5, 2012
@jits1712
Copy link
Author

jits1712 commented Oct 5, 2012

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

@jits1712
Copy link
Author

jits1712 commented Oct 5, 2012

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

@jagthedrummer
Copy link
Owner

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

@jits1712
Copy link
Author

jits1712 commented Oct 6, 2012

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 notifications@git.luolix.topwrote:

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//issues/18#issuecomment-9184994.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants