Opened 8 years ago

Closed 8 years ago

#13531 closed Bug (invalid)

Codemirror plugin gives DOM error

Reported by: Marcus Bointon Owned by:
Priority: Normal Milestone:
Component: UI : Source View Version:
Keywords: Cc:


My CKEditor is working nicely, except when I click the source button, it throws this error, after which everything is broken.

[Error] InvalidCharacterError: DOM Exception 5: An invalid or illegal character was specified, such as in an XML name.
	add (ckeditor.js, line 79)
	(anonymous function) (ckeditor.js, line 79)
	loadCodeMirror (plugin.js, line 543)
	(anonymous function) (plugin.js, line 468)
	g (ckeditor.js, line 226)
	B (ckeditor.js, line 226)
	s (ckeditor.js, line 226)
	(anonymous function) (ckeditor.js, line 227)

I'm using vanilla CKEditor 4.5.1 with several standard plugins, including codemirror, using latest codemirror 5.4. It's nothing to do with the content inside the editor because it throws the same error even when there is no content at all.

The same config worked fine with CKEditor 4.4.8.

Change History (1)

comment:1 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.1

If you try the same without plugin then source mode works.

This should rather be reported to plugin author and it is the plugin which needs to be adjusted to the editor and not the other way around.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy