#12501 closed Bug (fixed)
rulePattern does not allow custom elements like <custom-tag>
Reported by: | Leon Machens | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.4.6 |
Component: | General | Version: | 4.1 |
Keywords: | Cc: |
Description
Custom elements are described here. Due to the rulePattern in filter.js it is not possible to use elements with a minus-character.
A simple solution is to edit the pattern to:
var rulePattern = /^([a-z0-9-*\s]+) ...
Change History (4)
comment:1 Changed 10 years ago by
Owner: | set to Piotrek Koszuliński |
---|---|
Status: | new → assigned |
Version: | 4.4.4 → 4.1 |
comment:2 Changed 10 years ago by
Milestone: | → CKEditor 4.4.6 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Ok, I didn't see any problems now. Fixed on master with git:3574029.
I remember that there was some problem when parsing ACRs if
-
was allowed, but let's see this again. Note that to avoid unnecessary complexity of ACRs string format and its parser we implemented more powerful object format and it accepts dashes. So if there will be some problem, we are not going to change the parser.