Ticket #7034: 7034.patch

File 7034.patch, 596 bytes (added by Garry Yao, 9 years ago)
  • _source/plugins/specialchar/dialogs/specialchar.js

     
    2525                        target.removeClass( "cke_light_background" );
    2626                        dialog.hide();
    2727
    28                         editor.insertHtml( value );
     28                        // We must use "insertText" here to keep text styled.
     29                        var span = editor.document.createElement( 'span' );
     30                        span.setHtml( value );
     31                        editor.insertText( span.getText() );
    2932                }
    3033        };
    3134
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy