Ticket #2407 (closed Bug: fixed)

Opened 20 months ago

Last modified 17 months ago

Applying the div tool from the toolbar to a list screws the list up

Reported by: Exception e Owned by: martinkou
Priority: Normal Milestone: FCKeditor 2.6.4
Component: General Version: FCKeditor 2.6.3 Beta
Keywords: Confirmed Review+ Cc:

Description

Applying the div tool from the toolbar to a list screws it up.

Type and select:

1. foo
2. bar
3. roo

Then apply the div tool. Give it an inline style "border: 1px solid blue;".

Result:

paragraphs are added with contents of the li items. The list contains only spaces. The paragraphs are wrapped in the new div, but the list is outside the div.


tested both ie7 and firefox3

Attachments

2407.patch Download (6.3 KB) - added by martinkou 20 months ago.
2407_2.patch Download (6.5 KB) - added by martinkou 17 months ago.

Change History

Changed 20 months ago by martinkou

  • keywords Confirmed added

Confirmed.

The bug also happens with the blockquote command.

Changed 20 months ago by martinkou

  • owner set to martinkou
  • status changed from new to assigned

Changed 20 months ago by martinkou

Changed 20 months ago by martinkou

  • keywords Review? added

Changed 20 months ago by fredck

  • milestone changed from FCKeditor 2.6.3 to FCKeditor 2.6.4

The changes in the patch are too risky for a beta stabilization. I'm moving it to the next release.

Changed 20 months ago by Exception e

But the buggy div tool is quite useless without this fix. Now blockquotes and divs are unreliable. Maybe it's an idea then to publish 2.6.4beta simultaneously.

Changed 20 months ago by martinkou

If you need the fix urgently, you can download the source code of 2.6.3 from  https://svn.fckeditor.net/FCKeditor/tags/2.6.3/ with an SVN client, apply the patch, and compile the code package with the _dev/build_release.bat file. You'll need a Windows machine with PHP installed to compile the package.

Changed 17 months ago by alfonsoml

  • keywords Review- added; Review? removed

This patch breaks the packaged files.

to fix it I've added a semicolon at the end of the noBlockLeft function:

			var noBlockLeft = function( bqBlock )
			{
				for ( var i = 0 ; i < bqBlock.childNodes.length ; i++ )
				{
					if ( FCKListsLib.BlockElements[ bqBlock.childNodes[i].nodeName.toLowerCase() ] )
						return false ;
				}
				return true ;
			} ;

Changed 17 months ago by martinkou

Changed 17 months ago by martinkou

Ok, updated patch with the semicolon added.

Changed 17 months ago by martinkou

  • keywords Review? added; Review- removed

Changed 17 months ago by fredck

  • keywords Review+ added; Review? removed

Changed 17 months ago by martinkou

  • status changed from assigned to closed
  • resolution set to fixed

Fixed with [2598].

Click here for more info about our SVN system.

Note: See TracTickets for help on using tickets.