• 2
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? 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!

            [CONFSERVER-23966] Shortcut for font format options

            A fix for this issue is available in Confluence Data Center 9.1.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Jordan Anslow added a comment - A fix for this issue is available in Confluence Data Center 9.1.0. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Louis Go added a comment - - edited

            Using double curly braces are acceptable when it's working, but it might be failed with pasted format texts. Which would lead to an unacceptable operations.

            1. Remove { Unknown macro: \{ and }

              }

            1. Select text
            2. Choose monospace format.

            These operations are annoying when curly braces failed and it failed A LOT....

            A hot key combination would solve this issue. I would trade this feature with an existing hot key or make it configurable.

            Louis Go added a comment - - edited Using double curly braces are acceptable when it's working, but it might be failed with pasted format texts. Which would lead to an unacceptable operations. Remove { Unknown macro: \{ and } } Select text Choose monospace format. These operations are annoying when curly braces failed and it failed A LOT.... A hot key combination would solve this issue. I would trade this feature with an existing hot key or make it configurable.

            kimkk added a comment -

            Here plus agree with the suggestion for shortcuts for monospace, subscript, superscript, etc.

            I have heavy documentation work with code examples and need shortcut for monospace. 

            Mouse click on the menu requires many actions including moving mouse pointer to menu, scroll down, clicking and return to editing postion in the page.

            TamperMonkey based solution does not work for my confluence server 7.0.1.

            kimkk added a comment - Here plus agree with the suggestion for shortcuts for monospace, subscript, superscript, etc. I have heavy documentation work with code examples and need shortcut for monospace.  Mouse click on the menu requires many actions including moving mouse pointer to menu, scroll down, clicking and return to editing postion in the page. TamperMonkey based solution does not work for my confluence server 7.0.1.

            I heavily agree with the suggestion for having shortcuts also for monospace, subscript, ..

            And thanks for the 'solution' by use of GreaseMonkey above – something sems to be changed in the meanwhile within Confluence, so it worked for me only after reloading the edited page. The following variant solved this problem (but it's just a hack, as now it is called more often than needed):

             

            // ==UserScript==
            // @name Monospace Keyboard Shortcut for Confluence
            // @version 0.3
            // @grant none
            // @include */editpage.action?*
            // @include */createpage.action?*
            // @run-at document-idle
            // @description Adds keyboard shortcuts for formatting, Ctrl+Alt+m - monospace, Ctrl+Alt+j - superscript, Ctrl+Alt+k - subscript
            // ==/UserScript==
            document.addEventListener('DOMNodeInserted', function() { 
              if (tinyMCE) {
               if (tinyMCE.activeEditor) {
                 console.log("Monospace patch loading");
                   tinyMCE.activeEditor.addShortcut("ctrl+alt+m","monospace","confMonospace");
                   tinyMCE.activeEditor.addShortcut("ctrl+alt+j","superscript","Superscript");
                   tinyMCE.activeEditor.addShortcut("ctrl+alt+k","subscript","Subscript");
            
               } 
              }
            }, false);
            

             (Yet added two hacks for superscript and subscript as a sample, as it needed me a while to figure out the right names, maybe it helps someone – don't ask me regarding the crude shortcuts, just not yet tested which better ones wouldn't be conflicting with Confluence)

            Deleted Account (Inactive) added a comment - - edited I heavily agree with the suggestion for having shortcuts also for monospace, subscript, .. And thanks for the 'solution' by use of GreaseMonkey above – something sems to be changed in the meanwhile within Confluence, so it worked for me only after reloading the edited page. The following variant solved this problem (but it's just a hack, as now it is called more often than needed):   // ==UserScript== // @name Monospace Keyboard Shortcut for Confluence // @version 0.3 // @grant none // @include */editpage.action?* // @include */createpage.action?* // @run-at document-idle // @description Adds keyboard shortcuts for formatting, Ctrl+Alt+m - monospace, Ctrl+Alt+j - superscript, Ctrl+Alt+k - subscript // ==/UserScript== document.addEventListener( 'DOMNodeInserted' , function() { if (tinyMCE) { if (tinyMCE.activeEditor) { console.log( "Monospace patch loading" ); tinyMCE.activeEditor.addShortcut( "ctrl+alt+m" , "monospace" , "confMonospace" ); tinyMCE.activeEditor.addShortcut( "ctrl+alt+j" , "superscript" , "Superscript" ); tinyMCE.activeEditor.addShortcut( "ctrl+alt+k" , "subscript" , "Subscript" ); } } }, false );  (Yet added two hacks for superscript and subscript as a sample, as it needed me a while to figure out the right names, maybe it helps someone – don't ask me regarding the crude shortcuts, just not yet tested which better ones wouldn't be conflicting with Confluence)

            Alex Pasternak added a comment - - edited

            @WH, I'm finding this no longer works in Confluence v6.3.3. Do you or anyone else have a workaround? It's really unfortunate, as I used this shortcut many many times daily.

            Update: I ended up disabling TamperMonkey scripts and just creating a Keyboard Maestro macro for this. KM is the answer for everything. On Ctrl-Alt-M, it cuts, types { {, pauses 0.1 sec, types cut text, pauses again, types } }. Works like a charm.

            Alex Pasternak added a comment - - edited @WH, I'm finding this no longer works in Confluence v6.3.3. Do you or anyone else have a workaround? It's really unfortunate, as I used this shortcut many many times daily. Update: I ended up disabling TamperMonkey scripts and just creating a Keyboard Maestro macro for this. KM is the answer for everything. On Ctrl-Alt-M, it cuts, types { {, pauses 0.1 sec, types cut text, pauses again, types } }. Works like a charm.

            @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.

              5e496a614b63 Diclehan Erdal
              7bc948bcb674 itCampus GmbH
              Votes:
              116 Vote for this issue
              Watchers:
              54 Start watching this issue

                Created:
                Updated:
                Resolved: