Opened 15 years ago

Closed 15 years ago

#3834 closed Bug (fixed)

Context menu on table caption incorrect

Reported by: Garry Yao Owned by: Tobiasz Cudnik
Priority: Normal Milestone: CKEditor 3.0
Component: UI : Context Menu Version:
Keywords: Confirmed Review+ Cc:

Description

Reproducing Procedures

  1. Open the replace by class example page;
  2. Make the following content with selection;
       <table>
    	<caption>
    		cap^tion</caption>
    	<tbody>
    		<tr>
    			<td>cell</td>
    		</tr>
    	</tbody>
       </table>
    
  3. Right click to open context menu,
    • Exptected Result: 'Cell' menu item should be disabled.
    • Actual Result: It's possible to select 'Cell' to open sub menu.

Attachments (2)

3834.patch (2.0 KB) - added by Tobiasz Cudnik 15 years ago.
3834_2.patch (1.7 KB) - added by Tobiasz Cudnik 15 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by Tobiasz Cudnik

Owner: set to Tobiasz Cudnik
Status: newassigned

comment:2 Changed 15 years ago by Tobiasz Cudnik

Keywords: Confirmed Review? added

Changed 15 years ago by Tobiasz Cudnik

Attachment: 3834.patch added

comment:3 Changed 15 years ago by Frederico Caldeira Knabben

Keywords: Review- added; Review? removed
  • There is no need to create the "tagName" variable. It's used only once, so you can use element.getName() directly. You may do contextMenuTags[ element.getName() ].
  • The same thing for showContextMenu, we don't need a variable here. The condition can go straight into the if.
  • The contextMenuTags definition can be moved out, into the main anonymous function scope, so it's created only once.
  • There is an unwanted change in the changelog file at line 1.

Changed 15 years ago by Tobiasz Cudnik

Attachment: 3834_2.patch added

comment:4 Changed 15 years ago by Tobiasz Cudnik

Keywords: Review? added; Review- removed

I've applies all your suggestions in second patch.

comment:5 Changed 15 years ago by Garry Yao

Keywords: Review+ added; Review? removed

Please comment out the related ticket number inline before submit.

comment:6 Changed 15 years ago by Tobiasz Cudnik

Resolution: fixed
Status: assignedclosed

Fixed with [3792].

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