Opened 9 years ago

Closed 9 years ago

#5870 closed New Feature (wontfix)

Add ability to hide anchors in editor content (patch)

Reported by: Scott Bronson Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: HasPatch Cc:

Description

The way CKeditor currently handles anchors is quite obtrusive. Documents with anchors look very different when they're being edited than they do in real life.

This patch adds the linkShowAnchors config item. It defaults to true and, if the user sets it to false, anchors will remain hidden while the document is being edited. All other functionality remains the same.

Attachments (1)

link.patch (1.1 KB) - added by Scott Bronson 9 years ago.
Patch to make displaying anchors optional, controlled by a config item.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Scott Bronson

Attachment: link.patch added

Patch to make displaying anchors optional, controlled by a config item.

comment:1 Changed 9 years ago by Frederico Caldeira Knabben

Keywords: HasPatch added

I don't see it much useful, as it doesn't make it possible to modify anchors. But anyway, the patch is here for anyone that may be interested on it.

comment:2 Changed 9 years ago by Scott Bronson

True, I should have mentioned that. My app manages anchors automatically when the document is saved. My users don't have much of a need to edit them (and in the rare event that they do, there's always source view).

comment:3 Changed 9 years ago by Frederico Caldeira Knabben

Another solution, but I didn't try it, is simply adding CSS rules in the contents.css file to hide the anchors. This should be the best solution, as we're also using CSS to display the anchor icons.

comment:4 Changed 9 years ago by Alfonso Martínez de Lizarrondo

Resolution: wontfix
Status: newclosed

The only reason to add this patch would be due to the current behavior that hides contents of anchors, but the patch in #3582 changes that, so the only issue are the anchor icons, but that can be controlled by CSS as Fred stated.

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