Opened 13 years ago
Last modified 11 years ago
#10414 confirmed Bug
IE Problems when entering — at Version 1
| Reported by: | swhong | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | 3.5.3 |
| Keywords: | Support | Cc: |
Description (last modified by )
Enter the letters.
The Select All letters.
Enter the characters again. (Korean)
ex)
Normal Input: 가나다라
a bug: ㄱ가나다
I think _sourc/\plugins/wysiwygarea/plugin.js Prevent IE from leaving new paragraph after deleting all contents in body. (#6966)
if ( CKEDITOR.env.ie && editor.config.enterMode != CKEDITOR.ENTER_P )
{
domDocument.on( 'selectionchange', function()
{
var body = domDocument.getBody(),
sel = editor.getSelection(),
range = sel && sel.getRanges()[ 0 ];
if ( range && body.getHtml().match( /^<p> <\/p>$/i )
&& range.startContainer.equals( body ) )
{
// Avoid the ambiguity from a real user cursor position.
setTimeout( function ()
{
range = editor.getSelection().getRanges()[ 0 ];
if ( !range.startContainer.equals ( 'body' ) )
{
'''body.getFirst().remove( 1 );''' >> '''body.getFirst().remove( 0 );'''
range.moveToElementEditEnd( body );
range.select( 1 );
}
}, 0 );
}
});
}
The problem is solved
