Page 1 of 1

Code Mirror Syntax Breaking Page

Posted: Thu Apr 25, 2013 5:16 pm
by cpansewicz
Hi,

I have never had this issue before with CodeMirror. I have a page that I have inserted a html form into. When I open the page with CodeMirror, half of the code in the page is deleted. When I open the page without any syntax editor, the code remains intact.

Would anybody have any ideas about this behavior, or maybe feel up to looking at my html code to see if there is something in the code causing this to happen?

Thanks!

Re: Code Mirror Syntax Breaking Page

Posted: Thu Apr 25, 2013 6:15 pm
by uniqu3
i bet CodeMirror is colapsing with <textarea> tag in your form, assuming it should close Syntax area and therefore breakign your page.

Re: Code Mirror Syntax Breaking Page

Posted: Thu Apr 25, 2013 6:31 pm
by cpansewicz
You are exactly right. It is breaking before the first <textarea></textarea>. Is there something I can do about this?

Re: Code Mirror Syntax Breaking Page

Posted: Thu Apr 25, 2013 6:40 pm
by uniqu3
Yes, send a Bug report http://dev.cmsmadesimple.org/bug/list/650
I was dealing with same issue in AceEditor, but don't remember anymore what i did to fix this behavior.

Re: Code Mirror Syntax Breaking Page

Posted: Thu Apr 25, 2013 6:45 pm
by cpansewicz
Thanks. I just submitted the bug. I appreciate the input!