Opened 13 years ago
Last modified 9 years ago
#10340 confirmed Bug
DTD caching makes it impossible to modify DTD even before first editor creation — at Initial Version
| Reported by: | Piotrek Koszuliński | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 4.0 Beta |
| Keywords: | Webkit Opera | Cc: |
Description
CKEDITOR.dtd.customtag = { em:1 };
CKEDITOR.dtd.$block.customtag = 1;
CKEDITOR.dtd.body.customtag = 1;
Load:
<customtag>foo</customtag>
It will be transformed to:
<customtag></customtag> <p>foo</p>
I think that we don't have to rewrite all code which caches DTD objects because that would ruin performance or increase complexity in some places. Therefore we can introduce event CKEDITOR#dtd fired when DTD is created and allowing its modifications.
