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

  1. Add widget with tag name 'cnn:news' widget template is '<cnn:news>Some news</cnn:news>'
  1. 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>

  1. Push up button "source" and push down again
  2. And we see:

<h1>111</h1> <cnn:news>Some news</cnn:news>

<h1>111</h1>

<h1>111</h1> <cnn:news>Some news</cnn:news>

  1. There were only two widget tags

Change History (3)

comment:1 Changed 7 years ago by Jakub Ś

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:.

Last edited 7 years ago by Jakub Ś (previous) (diff)

comment:2 Changed 7 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.114.0

comment:3 Changed 7 years ago by Jakub Ś

Related issues: #11562, #10340

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