Context menu in message editor

Started by 64Guitars, November 21, 2012, 08:02:54 PM

64Guitars

I've added a new context menu to the message editor. It uses an HTML5 feature which is currently only supported in Firefox but should be available in future versions of other browsers eventually.

http://caniuse.com/#feat=menu

To use it, just right-click anywhere inside the message editor box. You'll see the usual context menu that your browser creates with a new "Songcrafters" sub-menu item at the top. When you move the mouse over this sub-menu, other sub-menus will cascade to the right of it.



Selecting an item in the menu will insert the BBCode for that item into your message at the current cursor position, just like clicking on one of the buttons above the message editor. One exception is the Help menu which contains links to pages with tutorials and references for message editing and BBCodes. Clicking one of the links in the Help menu will load the corresponding page in a new tab or browser window, depending on how your browser is configured.

I hope this will make message editing somewhat easier and more fun for those of you using Firefox. If you use another browser, don't worry. This new menu is just a convenience; it's not required to use the site effectively. Most of the items on the menu are duplicates of the buttons above the editor.

For the benefit of those who don't use Firefox, here are the links from the Help menu:

 Message Editing:
https://songcrafters.org/community/index.php?topic=3609.0
BBCode Reference:
http://docs.simplemachines.org/index.php?board=22.0;sort=subject
BBCode Ref (Wiki):
http://wiki.simplemachines.org/smf/Alphabetical_list_of_all_bulletin_board_codes
   Custom BBCode:
https://songcrafters.org/community/index.php?action=articles;sa=view;article=10

recorder
Zoom R20
recorder
Boss BR-864
recorder
Ardour
recorder
Audacity
recorder
Bitwig 8-Track
     My Boss BR website

64Guitars

Just a reminder and update on this feature. As stated above, it currently only works with Firefox because it seems to be the only web browser that supports this HTML5 feature. I assume it will be supported by other browsers someday since it's a standard HTML5 feature, but I don't know when that will happen.

Since I originally introduced these Songcrafters context menus, I've added several more menus and items.

There is now a "Special characters" menu which allows you to insert many characters that aren't normally found on your keyboard (depending on what part of the world you're in) such as "£", "½", "é", "✓", "Ω", and "№", plus many more.

There's a Tables menu which lets you insert all of the bbcode needed to make a table. You decide how many columns you want, then just insert your text between the [td][/td] tags. It defaults to 6 rows but you can easily copy & paste or delete rows as needed.

Plus, these menus are now available in the QuickReply box too.

If you use Firefox, you should give this feature a try. I think you'll find it very handy.

recorder
Zoom R20
recorder
Boss BR-864
recorder
Ardour
recorder
Audacity
recorder
Bitwig 8-Track
     My Boss BR website

leighelse

Fantastic - thank you.

Firefox is my usual browser - it has a range of developer plugins I rely on for work. The features you've added will compel me to install Firefox on the 10" Win10 detachable I've been using to access Songcrafters. I'll do it now. I should have done it when I bought the machine, but it has relatively limited storage and I thought I'd check out the Edge browser for awhile: it's not bad, but it doesn't have my Firefox bookmarks or my password utility.

Thanks again,

::Leigh
Dueling BR1600s. Beats banjos.