Opened 11 years ago

Closed 11 years ago

#10638 closed New Feature (invalid)

HTML entities in custom dropdown

Reported by: Spire Owned by:
Priority: Normal Milestone:
Component: General Version: 4.1
Keywords: Cc:

Description

Hi

We are using custom dropdown plugin with HTML entities in dropdown values, e.g. "<<H1\Field1>>". But when we select the corresponding field in dropdown, we get the javascript error "Uncaught TypeError: Cannot call method 'hasClass' of null".

We are using free version of CKEditor 4.1.

Please help.

Thanks

Change History (2)

comment:1 Changed 11 years ago by Spire

FYI , We are adding the dropdown element as ["<<H1\Field1>>", "Field1", "Field1"]

comment:2 Changed 11 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Please use below two things:

  1. Use this ["<H1Field1>", "Field1", "Field1"] to initialize dropdown
  2. In plugin onClick method use editor.insertText();

This is how you can insert entities.

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