Opened 15 years ago

Closed 7 years ago

#3015 closed New Feature (invalid)

Insert Special Character - Code format choice

Reported by: Russell Chappell Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0 Beta
Keywords: Cc:


I've used FCKeditor for a long time now and I like what your doing with CKEditor3. You have the ability to insert special characters, an example being © for the copyright symbol and   for a none breaking space. In strict browser such as those using the WebKit engine the above mentioned characters can cause errors when loading in via an AJAX (XML Wrapper) request. They state that strict XML requires either numbered codes or an entity be added to the page. Considering that FCKeditor can be used to create content for an AJAX request it would be worth while adding the option into the "insert special character" to chose whether the character be encoded in alphabet mode or numbered mode. An example being that in alphabet mode the code for a Non Breaking Space would be written as   and in numbered mode it would be written as  . Or an option to choose which mode to be added into the config file?

Change History (3)

comment:1 Changed 15 years ago by Artur Formella

Keywords: Confirmed added; insert special character code removed
Version: CKEditor 3.0 Beta

Good idea, but before we should focus on more important things in V3.

comment:2 Changed 8 years ago by Jakub Ś

Related issues #13733 and #5523.

comment:3 Changed 7 years ago by Jakub Ś

Resolution: invalid
Status: confirmedclosed

It has turned out that all you needed to do is adding   to the editor and then forcing it to be numerical if needed. The config option was already in the editor.

var editor = CKEDITOR.replace( 'editor1', {
	entities_processNumerical : 'force'
editor.on( 'pluginsLoaded', function( evt )
  CKEDITOR.config.specialChars.unshift( [' '] );
  editor.on( 'contentDom', function( e )
      var editable = editor.editable();
      var doc = editor.document;					
      editable.attachListener( doc, 'keydown', function( event ){
        if( === (CKEDITOR.SHIFT+32)){
          editor.insertHtml( ' ' );

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