Closed Bug 177363 Opened 22 years ago Closed 20 years ago

Add Text Style to Context Menu in Composer

Categories

(SeaMonkey :: Composer, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: kickthedonkey, Assigned: kickthedonkey)

Details

Attachments

(4 files, 3 obsolete files)

To reduce the number of 'mouse miles', it would be nice to have the 'Text Style'
sub menu as part of the Context Menu when Text is selected.
Reassinged to myself (cherokeestargazer@yahoo.com)
Assignee: syd → cherokeestargazer
I was not really sure what format I should have provided this 'patch' in.  I
archived the two files I changed into comm_Patch.jar.  The two files in the my
archive are:
content/editor/EditorContextMenuOverlay.xul
content/editor/EditorContextMenu.js

These file replace the files of the same name in chrome/comm.jar.  If I need to
provide this patch in another format, please email me and let me know.

Changes in "EditorContextMenuOverlay.xul"
-----------------------------------------
Added menu "fontStyleMenu_cm" to popupset "editorContentContextSet"

Changes in "EditorContextMenu.js"
-----------------------------------------
Added function call to SetElementEnabledById to enable Text Style sub menu if
object selected is NOT an image.
Added call to SetElementEnabledById to enable menu item 'fontStyleMenu_cm' if
object selected was NOT an image.
Attachment #104553 - Attachment is obsolete: true
Added tags for the 'Text Style' menu item to be added to the Context Menu with
in editor.  

Menu item added was 'fontStyleMenu_cm'.
cmanske: could you take a look at this "patch" and review it?

reporter: please attach a patch in patch format, by using "cvs diff -u >
name_of_patch_file" if you are using CVS.
Applied edit to current CVS version of file to add 'Text Style' submenu to the
Context menu in Composer.  Used call to SetElementEnabledById() to enable the
submenu if objext selected was NOT an image
Attachment #104556 - Attachment is obsolete: true
'cvs diff -U EditorContextMenu.js' output
Added tags to add 'Text Style' to Context menu in Composer
Attachment #104558 - Attachment is obsolete: true
'cvs diff -U EditorContextMenuOverlay.xul' output
Attachment #104716 - Attachment description: Inculdes edits to enable Text Styles in Context Menu → EditorContextMenu.js - Inculdes edits to enable Text Styles in Context Menu
Attachment #104717 - Attachment description: Difference between modded version and CVS version → EditorContextMenu.js.dif - Difference between modded version and CVS version
Reporter, there is no need for attaching the whole document. Just attach one
patch with the changes to both files, and mark it "patch".

Maybe someone should CONFIRM this bug? I won't :-D
Attachment #104717 - Attachment is patch: true
Attachment #104717 - Attachment mime type: application/octet-stream → text/plain
Attachment #104719 - Attachment is patch: true
Attachment #104719 - Attachment mime type: application/octet-stream → text/plain
Attachment #104553 - Attachment is patch: false
Attachment #104553 - Attachment mime type: text/plain → application/zip
I'm not so sure this is a good idea! Context menus are crowded already. 
Brade?
I disagree with having this in the contextual menu. What we should have instead is
(un)dockable menus.

I recommend a WONTFIX for this bug.
You do acculate alot of 'mouse miles' by having to back through the menu system
to get to some type of special style (like CODE...)  Perhaps a drop down list on
the toolbar would work...  I'll try that...
per Glazman, wontfix.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
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: