Opened 4 years ago

Closed 4 years ago

#7911 closed New Feature (fixed)

Unable to remove anchor

Reported by: RichardD Owned by: Saare
Priority: Normal Milestone: CKEditor 3.6.1
Component: UI : Context Menu Version: 3.6
Keywords: Cc:

Description

In the FCKeditor, there was a context-menu option to remove an anchor. In the CKEditor, this option does not exist.

Attempting to remove the anchor by clearing the anchor name displays the error, "Please type the anchor name".

As a result, the only way to remove an anchor is to edit the source.

Attachments (2)

7911.patch (2.6 KB) - added by Saare 4 years ago.
7911_2.patch (2.6 KB) - added by Saare 4 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 4 years ago by fredck

  • Keywords remove anchor removed
  • Milestone set to CKEditor 3.6.1
  • Status changed from new to confirmed

Up to CKEditor 3.6, it was possible to create collapsed anchors only, which were represented by icons only. To delete them, it was enough to simple delete those icons.

As we've added the ability to create anchors with contents, we're now in fact missing a way to remove them. Nice catch!

Changed 4 years ago by Saare

comment:2 Changed 4 years ago by Saare

  • Owner set to Saare
  • Status changed from confirmed to review

comment:3 Changed 4 years ago by fredck

  • Status changed from review to review_failed

In Firefox, it's not possible to remove collapsed anchors.

Additionally, there is no need to use CKEDITOR.tools.extend() at line 161. It just makes the code bigger and more complicated. Simply assigning the "menu" object properties is enough.

Changed 4 years ago by Saare

comment:4 Changed 4 years ago by Saare

  • Status changed from review_failed to review

comment:5 Changed 4 years ago by fredck

  • Status changed from review to review_passed
  • Type changed from Bug to New Feature

comment:6 Changed 4 years ago by Saare

  • Resolution set to fixed
  • Status changed from review_passed to closed

Fixed with [6980].

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