Closed Bug 99541 Opened 24 years ago Closed 23 years ago

Create Link is an option in the right-click menu when a link is highlighted

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: TucsonTester2, Assigned: cmanske)

Details

Attachments

(1 file, 1 obsolete file)

After creating a link in composer and right clicking it, in the pop-up menu it gives an option to create a link even though there is a link already in place. Build: 2001091003 Reproducibility: Every time Steps to Reproduce: 1. Open Composer 2. Type in some text and highlight it 3. Click on the link button in the toolbar and create a link then click ok 4. Right click on the link Actual Results: Once you right click on the link you will see that there is an option for "Create Link". Expected Results: I would expect that the "Create Link" option would not be in this menu since the text I right-clicked on was already a link. If you do click on "Create Link" it just brings up the Link Properties window which is already an option of it's own on the right-click menu. I believe that this makes it uneccessary to have in this menu.
--> syd
Assignee: kin → syd
Confirmed on Win 2k using build 20010927.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'd chime in that Remove Links should be Remove Link (why is it plural), we should convert the Create Link to Edit Link Properties..., and we should remove the Link Properties from the bottom of the menu. But anyway, marking future, not an EDITORBASE bug.
Target Milestone: --- → Future
Status: NEW → ASSIGNED
This bug is related to a problem I raise in bug 142042: "Image right-click Create Link is inconsistent with other ways of adding a link". This "Image right-click Create Link" leads to a different dialog box than the "Image Properties > Link Tab" dialog box which is reached by the three other, more normal (I guess) ways of adding a link. Furthermore, this different dialog box does not have an option regarding the border of the image, whereas the "Image Properties > Link Tab" does. This border option and related problems with borders of images with links is the subject of my bug 142093.
Please see discussion of this "Create Link" right-click menu item in bug 142042. - Robin
Easy to fix. Changing milestone
Target Milestone: Future → mozilla1.1alpha
Assinging to me - fix comming soon.
Assignee: syd → cmanske
Status: ASSIGNED → NEW
Keywords: patch, review
Whiteboard: [FIX IN HAND]need r=,sr=
Target Milestone: mozilla1.1alpha → mozilla1.2alpha
Attached patch patch v1 (obsolete) — Splinter Review
This disables "Create Link" command appropriately. Needed extra code to handle detection of link around image as well.
Comment on attachment 91556 [details] [diff] [review] patch v1 In this block: + if (isImage) + { + var htmlEditor = window.editorShell.editor.QueryInterface(nsIHTMLEditor); + isInLink = htmlEditor.getElementOrParentByTagName("href", GetObjectForProperties()); + } It should be rewritten like this (please verify that this works; the parameters to getElementOrParentByTagName don't seem correct to me but I haven't checked): if (isImage) isInLink = gEditor.getElementOrParentByTagName("href", GetObjectForProperties());
Attached patch patch v2Splinter Review
Use "gEditor" as suggested
Attachment #91556 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Comment on attachment 91827 [details] [diff] [review] patch v2 r=brade
Attachment #91827 - Flags: review+
Whiteboard: [FIX IN HAND]need r=,sr= → [FIX IN HAND]need sr=
Attachment #91827 - Flags: superreview+
Whiteboard: [FIX IN HAND]need sr= → [FIX IN HAND]
Comment on attachment 91827 [details] [diff] [review] patch v2 a=asa (on behalf of drivers) for checkin to 1.1
Attachment #91827 - Flags: approval+
Checked into 1.1 trunk
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Keywords: patch, review
Resolution: --- → FIXED
Whiteboard: [FIX IN HAND]
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: