Opened 12 years ago

Last modified 10 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 Jakub Ś)

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>&nbsp;<\/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

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Description: modified (diff)
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