X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fspecialchar%2Fdialogs%2Fspecialchar.js;h=875c5d8b13a13e5e13ba13718ecd9044522f9b57;hb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;hp=01b0f865e7797bbd2923016b7a3cb900fa44c99e;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;p=ckeditor.git diff --git a/_source/plugins/specialchar/dialogs/specialchar.js b/_source/plugins/specialchar/dialogs/specialchar.js index 01b0f86..875c5d8 100644 --- a/_source/plugins/specialchar/dialogs/specialchar.js +++ b/_source/plugins/specialchar/dialogs/specialchar.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -25,7 +25,10 @@ CKEDITOR.dialog.add( 'specialchar', function( editor ) target.removeClass( "cke_light_background" ); dialog.hide(); - editor.insertHtml( value ); + // We must use "insertText" here to keep text styled. + var span = editor.document.createElement( 'span' ); + span.setHtml( value ); + editor.insertText( span.getText() ); } }; @@ -123,8 +126,6 @@ CKEDITOR.dialog.add( 'specialchar', function( editor ) // RIGHT-ARROW case rtl ? 37 : 39 : - // TAB - case 9 : // relative is TD if ( ( relative = element.getParent().getNext() ) ) { @@ -157,8 +158,6 @@ CKEDITOR.dialog.add( 'specialchar', function( editor ) // LEFT-ARROW case rtl ? 39 : 37 : - // SHIFT + TAB - case CKEDITOR.SHIFT + 9 : // relative is TD if ( ( relative = element.getParent().getPrevious() ) ) { @@ -210,7 +209,7 @@ CKEDITOR.dialog.add( 'specialchar', function( editor ) while ( i < size ) { - html.push( '