Ticket #8458 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

Ctrl + B can't work in this situation and javascript error is prompted

Reported by: pgteam Owned by:
Priority: Normal Milestone:
Component: General Version: 3.2.1
Keywords: IE Cc:

Description (last modified by j.swiderski) (diff)

I've tried on both ckeditor3.6.1, 3.6.2 demo page and the api.html example downloaded from the webpage. below steps can reproduce the bug - use the api.html page for testing:

  1. Type several lines in the input area.
  2. e.g.

line 1
line 2
line 3
line 4

  1. Select All or Ctrl + A
  2. Ctrl + B to bold them all
  3. press enter several new line at the beginning of the passage, that's mean below in source view:
    <p>
    	&nbsp;</p>
    <p>
    	&nbsp;</p>
    <p>
    	&nbsp;</p>
    <p>
    	<strong>line 1</strong></p>
    <p>
    	<strong>line 2</strong></p>
    <p>
    	<strong>line 3</strong></p>
    <p>
    	<strong>line 4</strong></p>
    
  4. Copy the text inside the "insert Text" box in api.html page, that's mean:

" First line with some leading whitespaces.

Second line of text preceded by two line breaks."

  1. paste the copied content in front of the bolded first line. After pasted the passage should be like this:
    <p>
    	&nbsp;</p>
    <p>
    	&nbsp;</p>
    <p>
    	&nbsp;</p>
    <p>
    	<strong><strong>&nbsp;&nbsp; First line with some leading whitespaces.</strong></strong></p>
    <p>
    	<strong><strong>Second line of text preceded by two line breaks.</strong></strong></p>
    <p>
    	<strong>line 1</strong></p>
    <p>
    	<strong>line 2</strong></p>
    <p>
    	<strong>line 3</strong></p>
    <p>
    	<strong>line 4</strong></p>
    
  1. select content from ^with'' to..... line 2^, so several lines are selected.
  1. now press Ctrl + B for several times, javascript error prompted with the following message:

message: 'null' is null or not an object line: 32 character: 544 source code: 0

  1. if no javascript error prompted, try to select several lines again, the most important thing is to select the text across the pasted content from insertText textarea to the middle of the rest passage. And then press Ctrl+B
  1. ctrl+b would n't work and javascript error prompted eventually.

ps: Platform - windows XP sp3 Browsers - IE8 version - ckeditor3.6.1, 3.6.2

NOTES:

  1. line number and character of the javascript error in step 9 changed sometimes
  2. during the reproduce process, don't switch to source mode.
  3. for text only contain one line to be pasted in step 6, may not got the same problem

Change History

comment:1 Changed 3 years ago by j.swiderski

  • Keywords IE added
  • Status changed from new to confirmed
  • Version changed from 3.6.1 to 3.2.1
  • Description modified (diff)

Result:JS error occurs:
Message: 'null' is null or not an object / Unable to get value of the property "equals": object is null or undefined
Line: 795
URI: /3.6.2/ckeditor/_source/plugins/styles/plugin.js

Reproducible in all versions of IE

IE9 additionaly during step 4 throws one more error:
Message: Unable to get value of the property "nodeValue": object is null or undefined
Line: 802
URI: /3.6.2/ckeditor/_source/plugins/selection/plugin.js

during the reproduce process, don't switch to source mode.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy