Rich Text Box Formatting in FF
April 15, 2008 6:01 AM Subscribe
FirefoxFilter: How can I use keyboard shortcuts in rich text boxes?
I use a CMS at work, and when I click into the rich text box to edit text, I'd like to be able to use keybard shortcuts for font styling (bold, italic, and underline...nothing too fancy). Is the even possible, through a FF extension or other trick?
I use a CMS at work, and when I click into the rich text box to edit text, I'd like to be able to use keybard shortcuts for font styling (bold, italic, and underline...nothing too fancy). Is the even possible, through a FF extension or other trick?
I was actually just thinking about adding some keyboard shortcuts to a current project. This is generally done in javascript. I came across this set of instructions. I am not familiar with Greasemonkey, but this could easily be incorporated into any page with a text box. Pressing something like CTRL + B would add 60;b62; 60;/b62; and throw the cursor in the middle, or take any highlighted text and surround it with bold tags. Same goes for italics and underline.
I am sure there is somebody who will pop in and knows how to throw that script together in GM within 5 minutes. If not, I will take a stab at it.
posted by B(oYo)BIES at 7:54 AM on April 15, 2008
I am sure there is somebody who will pop in and knows how to throw that script together in GM within 5 minutes. If not, I will take a stab at it.
posted by B(oYo)BIES at 7:54 AM on April 15, 2008
60;b62; 60;/b62; looked fine in live preview. Let's try somethign else.. & lt; b & gt; (no spaces).
<b> </b>
(Preview) Yep, that works..
posted by B(oYo)BIES at 8:24 AM on April 15, 2008
<b> </b>
(Preview) Yep, that works..
posted by B(oYo)BIES at 8:24 AM on April 15, 2008
This thread is closed to new comments.
The only drawback I can see is that you mentioned Rich Text, not HTML. I'm not sure if you mean the old rtf format that wordpad etc uses, or if you just meant bold, italics and the rest that html itself gives.
Search for 'editor' on addons.mozilla.org, in case these two don't exactly fit your needs.
posted by arungoodboy at 6:52 AM on April 15, 2008