Opened 8 years ago
Last modified 7 years ago
#14717 confirmed Bug
Widget tag name with colon
Reported by: | incur | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Widgets | Version: | 4.0 |
Keywords: | Cc: |
Description
Steps to reproduce
- Add widget with tag name 'cnn:news' widget template is '<cnn:news>Some news</cnn:news>'
- In source mode ckeditor add next html:
<h1>111</h1> <cnn:news>Some news</cnn:news>
<h1>111</h1> <cnn:news>Some news</cnn:news>
<h1>111</h1> <cnn:news>Some news</cnn:news>
- Push up button "source" and push down again
- And we see:
<h1>111</h1> <cnn:news>Some news</cnn:news>
<h1>111</h1>
<h1>111</h1> <cnn:news>Some news</cnn:news>
- There were only two widget tags
CKEditor doesn't support custom elements by default. In order to make them work, dtd needs to be modified (source code for dtd), ACF needs to be extended and new editor needs to be built. Please see: https://stackoverflow.com/questions/16066556/ckeditor-how-to-allow-for-inserthtmlcustomtag-myattr-value-customtag/16068708#16068708
Direct Source Code modification is required for block-level tags. For inline tags dtd can be modified before first editor initialization. Please see #14418 for code example.
This issue is about making DTD work with namespaces like
cnn:
.