• Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      Updated:
      Including the other font formatting options on this ticket that was originally just for Monospace:

      • Subscript
      • Superscript
      • Monospace
      • Clear Formatting

      As there are shortcuts for italic, bold, underline and strike through formatting I would highly appreciate a shortcut for monospace.

      By the way: You should use a consistent translation for "monospace". So use either "nichtproportionale Schriften" or "Festbreitenschriftart" as a German translation!

          Form Name

            [CONFCLOUD-23966] Shortcut for font format options

            Thanks for adding the monospace shortcut; this is going to be helpful for me.

            Regarding the clear formatting shortcut, I find that it applies to the whole paragraph, even when I have a specific word(s) highlighted. By contrast, monospace only applies to the word that the current cursor is in (cool!) or the word(s) that I currently have highlighted.

            Would you be able to limit the scope of the clear formatting shortcut to apply to only the current word(s), like the monospace behavior? Thanks!

            Michael Mannion added a comment - Thanks for adding the monospace shortcut; this is going to be helpful for me. Regarding the clear formatting shortcut, I find that it applies to the whole paragraph, even when I have a specific word(s) highlighted. By contrast, monospace only applies to the word that the current cursor is in (cool!) or the word(s) that I currently have highlighted. Would you be able to limit the scope of the clear formatting shortcut to apply to only the current word(s), like the monospace behavior? Thanks!

            That is great for the cloud version, but what about us on the hosted version? For which version is this improvement scheduled there? And in the meantime, are there any workarounds, now that the tinyMCE is not working anymore (at least not for me)?

            Alex Pasternak added a comment - That is great for the cloud version, but what about us on the hosted version? For which version is this improvement scheduled there? And in the meantime, are there any workarounds, now that the tinyMCE is not working anymore (at least not for me)?

            philoye added a comment -

            We have added a shortcut for monospace:

            • Mac: Command+Shift+M
            • PC: Control+Shift+M
            • Autoformatting, surround your text with backticks: `monospace`.

            We have added a shortcut for clear formatting:

            • Mac: Command+\
            • PC: Control+\

            Documentation for our revised editor shortcuts.

            We are not offering shortcuts for subscript/superscript.

            philoye added a comment - We have added a shortcut for monospace: Mac: Command+Shift+M PC: Control+Shift+M Autoformatting, surround your text with backticks: `monospace`. We have added a shortcut for clear formatting: Mac: Command+\ PC: Control+\ Documentation for our revised editor shortcuts . We are not offering shortcuts for subscript/superscript.

            @WH: Is there a chance to get this script working even for taking comments?

            Andy Schönemann added a comment - @WH: Is there a chance to get this script working even for taking comments?

            @WH: Works great! Thank you so much!

            Andy Schönemann added a comment - @WH: Works great! Thank you so much!

            WH added a comment -

            Hi,
            thx for the GM hint! +1! Iam not the GreaseMonkey expert but I had to tweak it like this to make it work:

            // ==UserScript==
            // @name Monospace Keyboard Shortcut for Confluence
            // @version 0.2
            // @grant       none
            // @include */editpage.action?*
            // @include */createpage.action?*
            // @run-at document-idle
            // @description Adds a new keyboard shortcut (Ctrl+Alt+M) for monospace formatting
            // ==/UserScript==
            
            if (tinyMCE) {
              if (tinyMCE.activeEditor)  {
                console.log("Monospace patch loading");
                tinyMCE.activeEditor.addShortcut("ctrl+alt+m","monospace","confMonospace");
              }
            }
            

            WH added a comment - Hi, thx for the GM hint! +1! Iam not the GreaseMonkey expert but I had to tweak it like this to make it work: // ==UserScript== // @name Monospace Keyboard Shortcut for Confluence // @version 0.2 // @grant none // @include */editpage.action?* // @include */createpage.action?* // @run-at document-idle // @description Adds a new keyboard shortcut (Ctrl+Alt+M) for monospace formatting // ==/UserScript== if (tinyMCE) { if (tinyMCE.activeEditor) { console.log( "Monospace patch loading" ); tinyMCE.activeEditor.addShortcut( "ctrl+alt+m" , "monospace" , "confMonospace" ); } }

            Agree totally. Anything in Confluence should have a keyboard shortcut (or at least make one assignable easily).

            For those of us who use monospace (and other) formatting frequently, this is a huge waste of time.

            Thanks to John for the great user scripts that can help bridge the gap until Confluence has this feature! Thanks to Dmitry for providing the text we can also use while editing to accomplish this.

            Evan Breznyik added a comment - Agree totally. Anything in Confluence should have a keyboard shortcut (or at least make one assignable easily). For those of us who use monospace (and other) formatting frequently, this is a huge waste of time. Thanks to John for the great user scripts that can help bridge the gap until Confluence has this feature! Thanks to Dmitry for providing the text we can also use while editing to accomplish this.

            PS I apologze, I didn't look at the date of the blog post Apparently this has been there forever, I just never knew about it.

            Dmitry Pashkevich added a comment - PS I apologze, I didn't look at the date of the blog post Apparently this has been there forever, I just never knew about it.

            I thought this would be helpful to others.
            While there still aren't keyboard hotkeys for applying the mentioned font formatting, the next version of Confluence will automatically convert wiki markup to rich text (the feature is called Autoformatting)

            So now you can type things like:

              {{inline code}}
              ^superscript
              ~subscript
            

            into the corresponding rich text. Not as fast as hitting a hotkey, but still much better than using the toolbar.

            See the video under "Autoformatting" in this blog post for more stuff:
            http://blogs.atlassian.com/2012/12/12-things-you-didnt-know-about-the-confluence-editor/

            Thanks for the feature!

            Dmitry Pashkevich added a comment - I thought this would be helpful to others. While there still aren't keyboard hotkeys for applying the mentioned font formatting, the next version of Confluence will automatically convert wiki markup to rich text (the feature is called Autoformatting) So now you can type things like: {{inline code}} ^superscript ~subscript into the corresponding rich text. Not as fast as hitting a hotkey, but still much better than using the toolbar. See the video under "Autoformatting" in this blog post for more stuff: http://blogs.atlassian.com/2012/12/12-things-you-didnt-know-about-the-confluence-editor/ Thanks for the feature!

            John Ribeiro added a comment - - edited

            I ran into the same issue today, and got tired of having to use the menu bar to toggle monospace. I did a little digging and found a solution that works great for me, and I thought it might help others.

            The keyboard shortcuts for Confluence use a product called TinyMCE, which allows you to add keyboard shortcuts on the fly using the function tinyMCE.activeEditor.addShortcut(keystroke, description, command).

            You can actually invoke it yourself anytime you are editing a page in Confluence and specify any unused keystroke combination (I picked "ctrl+alt+m" but you could choose a different one that you prefer better) and use the description "monospace" and the command "confMonospace", and from that point on in your page editing session, that keyboard combination is available to you.

            There are a couple of ways to do this:

            1) Persistent method using GreaseMonkey for Firefox or TamperMonkey for Chrome:

            If you are using Firefox or Chrome, you can use the following user script to automatically add the keyboard shortcut anytime you access a URL that matches */pages/editpage.action?* or */pages/createpage.action?*

            // ==UserScript==
            // @name Monospace Keyboard Shortcut for Confluence
            // @version 0.1
            // @description Adds a new keyboard shortcut (Ctrl+Alt+M) for monospace formatting
            // @match */pages/createpage.action?*
            // @match */pages/editpage.action?*
            // ==/UserScript==
            tinyMCE.activeEditor.addShortcut("ctrl+alt+m","monospace","confMonospace")

            2) Ad-hoc method using a javascript bookmark:

            If you aren't using Chrome or Firefox, or can't (or don't want to) install GreaseMonkey or TamperMonkey in your browser, you can enable the monospace keyboard shortcut on an ad-hoc basis by creating a new browser bookmark, calling it something like "Enable Monospace", and setting it to the following javascript URL:

            javascript:tinyMCE.activeEditor.addShortcut("ctrl+alt+m","monospace","confMonospace");

            Then, whenever you are creating or editing a Confluence page where you frequently have to use monospace font, click on your new "Enable Monospace" bookmark, and from that point on, you will be able to use ctrl+alt+m to toggle monospace, the same way you would use ctrl+i to toggle italics.

            You can also use this second approach to test out any new keyboard shortcuts you might create, before you decide whether you want to try the GreaseMonkey/TamperMonkey approach.

            Just note that anytime the page reloads, the shortcut will be lost unless you use GreaseMonkey or TamperMonkey to add it in for your automatically every time you load the Confluence page editor.

            For anyone who's curious, I found out the proper description and command to use by searching in the javascript source code for ".addButton(" (in Chrome, press F12 to show the developer console, switch to the sources tab, then on the lower menu, click Search and use the search box to find all occurrences. You will find a result that says:

            B.addButton("monospace",

            {title:"monospace",cmd:"confMonospace"}

            )

            There several others available that might be of interest to you, so feel free to experiment.

            Hope this helps.

            John Ribeiro added a comment - - edited I ran into the same issue today, and got tired of having to use the menu bar to toggle monospace. I did a little digging and found a solution that works great for me, and I thought it might help others. The keyboard shortcuts for Confluence use a product called TinyMCE, which allows you to add keyboard shortcuts on the fly using the function tinyMCE.activeEditor.addShortcut(keystroke, description, command). You can actually invoke it yourself anytime you are editing a page in Confluence and specify any unused keystroke combination (I picked "ctrl+alt+m" but you could choose a different one that you prefer better) and use the description "monospace" and the command "confMonospace", and from that point on in your page editing session, that keyboard combination is available to you. There are a couple of ways to do this: 1) Persistent method using GreaseMonkey for Firefox or TamperMonkey for Chrome: If you are using Firefox or Chrome, you can use the following user script to automatically add the keyboard shortcut anytime you access a URL that matches */pages/editpage.action?* or */pages/createpage.action?* // ==UserScript== // @name Monospace Keyboard Shortcut for Confluence // @version 0.1 // @description Adds a new keyboard shortcut (Ctrl+Alt+M) for monospace formatting // @match */pages/createpage.action?* // @match */pages/editpage.action?* // ==/UserScript== tinyMCE.activeEditor.addShortcut("ctrl+alt+m","monospace","confMonospace") 2) Ad-hoc method using a javascript bookmark: If you aren't using Chrome or Firefox, or can't (or don't want to) install GreaseMonkey or TamperMonkey in your browser, you can enable the monospace keyboard shortcut on an ad-hoc basis by creating a new browser bookmark, calling it something like "Enable Monospace", and setting it to the following javascript URL: javascript:tinyMCE.activeEditor.addShortcut("ctrl+alt+m","monospace","confMonospace"); Then, whenever you are creating or editing a Confluence page where you frequently have to use monospace font, click on your new "Enable Monospace" bookmark, and from that point on, you will be able to use ctrl+alt+m to toggle monospace, the same way you would use ctrl+i to toggle italics. You can also use this second approach to test out any new keyboard shortcuts you might create, before you decide whether you want to try the GreaseMonkey/TamperMonkey approach. Just note that anytime the page reloads, the shortcut will be lost unless you use GreaseMonkey or TamperMonkey to add it in for your automatically every time you load the Confluence page editor. For anyone who's curious, I found out the proper description and command to use by searching in the javascript source code for ".addButton(" (in Chrome, press F12 to show the developer console, switch to the sources tab, then on the lower menu, click Search and use the search box to find all occurrences. You will find a result that says: B.addButton("monospace", {title:"monospace",cmd:"confMonospace"} ) There several others available that might be of interest to you, so feel free to experiment. Hope this helps.

              Unassigned Unassigned
              7bc948bcb674 itCampus GmbH
              Votes:
              88 Vote for this issue
              Watchers:
              45 Start watching this issue

                Created:
                Updated:
                Resolved: