We stumbled over a bug if we use the CKEditor with a third party library.
Problem 1:
In VCKEditorTextfield you are using the paintablId (paintableId = uidl.getId();) as ID for the div container the ckeditor will be injected into. This is against the HTML specification:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
This alone is not bad as most browsers document.getElementId() allow the usage of numbers.
Problem 2:
But if you are forced to use a third-party library that installs its own and more restrictive proxy for that particular function you start wondering why the CKEditor is no longer loaded.
I guess even a simple prefix for the element ID would fix the problem.
We stumbled over a bug if we use the CKEditor with a third party library.
Problem 1: In
VCKEditorTextfield
you are using the paintablId (paintableId = uidl.getId();
) as ID for the div container the ckeditor will be injected into. This is against the HTML specification:This alone is not bad as most browsers
document.getElementId()
allow the usage of numbers.Problem 2: But if you are forced to use a third-party library that installs its own and more restrictive proxy for that particular function you start wondering why the CKEditor is no longer loaded.
I guess even a simple prefix for the element ID would fix the problem.
Cheers, Paul