Opened 10 years ago

Closed 10 years ago

#12340 closed Bug (duplicate)

Unable to create an inline widget with nested editable span

Reported by: Libor Bus Owned by:
Priority: Normal Milestone:
Component: UI : Widgets Version:
Keywords: Cc:

Description

I am implementing a new widget which represents a link and allows user to enter link text and URL without any dialog. Its template looks as follows:

template:
    '<a href="" class="linkwidget"><span class="linkwidget-text">Content...</span>' +
    '<span class="linkwidget-info"> (<i class="icon-external-link"></i> <span class="linkwidget-url">http://</span>)</span>' +
    '</a>',

Definition of editables is as follows:

editables: {
    text: {
        selector: '.linkwidget-text',
        allowedContent: 'strong em'
    },
    url: {
        selector: '.linkwidget-url',
        allowedContent: ''
    }
},

Initialization of editables fail in widget.initEditable() because 'span' is not defined in CKEDITOR.dtd.$editable, i.e., following condition fails for 'span' elements:

editable.is( CKEDITOR.dtd.$editable )

Change History (1)

comment:1 Changed 10 years ago by Piotrek Koszuliński

Resolution: duplicate
Status: newclosed
Version: 4.4.3

DUP of #10974.

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