codemirror-ui
codemirror-ui copied to clipboard
Javascript error when editing in editor created by CodeMirrorUI lib
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
This is happning with index.html page of CodeMirrorUI lib too.
I am getting issue when try to integrate CodeMirrorUI in my app.
Hmm... the index.html page is working for me. What browser and OS are you using?
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.