Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a shortcut for Paste as Plain Text in Chrome and Confluence?

Chrome in Windows has Paste: Control + V  and Paste as Plain Text: Control + Shift + V.

It worked everywhere but Confluence.

Why? Is there another shortcut to it?


6 answers

2 votes
James Dellow Community Leader Dec 15, 2016

Yes, the rich text editor in Confluence doesn't appear to support the Control + Shift + V command.

If you are just copying and pasting other web content in Chrome to Confluence, you could try installing an add-on from the Chrome Web Store to help strip the formatting?

BTW have you considered raising this issue as a feature/bug request?

In Firefox, I was able to create a bookmark with the following as the "URL":

javascript:function removeShortcut() { tinyMCE.editors[0].shortcuts.remove("ctrl+shift+v"); return; } removeShortcut();

The important part is to return so that the page isn't redirected to display the return value of the remove() call (true).


It's a pretty hackish solution, but you can do it using CUSTOM HTML and play around with javascript.

<script type="text/javascript">// <![CDATA[

var fixShortCut = function(){
if (typeof tinyMCE !== "undefined" && tinyMCE.editors.length > 0)
setTimeout(function (args) {fixShortCut();}, 5000);

window.onload = function(e){
// ]]></script>

Unfortunately Confluence overrides Cmd-Shift-V / Ctrl-Shift-V as a shortcut for 'Paste Row Before' within tables. 

I've created a bookmarklet you can use to override this behavior:

javascript&colon;delete tinyMCE.editors[0].shortcuts["ctrl,,shift,86"]

To use it open the Bookmark Manager in Chrome and choose 'Add New Bookmark'.  In the URL section copy and paste the above. It should look like this:


Next time you're in the Confluence editor click the bookmark first (it won't be obvious anything has happened), then use Cmd+Shift+V and it should work as normal. 

In Firefox, this goes to a new page with just "true" on it.  Do you know a way to make this bookmarklet execute on the current page in Firefox?

unfortunately this bookmarklet does not work with tinyMCE 4+, the new way to disable the shortcut is via the tinyMCE API



 2020-09-17 09_46_58-Lesezeichen.png

Like # people like this

Thanks - I tried this out, unfortunately I could not get it to work.

From the Chrome console, I get:

Uncaught TypeError: require(...).editors[0].shortcuts.remove is not a function
at <anonymous>:1:41

With some minor modifications to debug, it seems to me that the require is actually not succeeding in my environment, even though the error is about .remove() .  I'm new to JS though.

Any other thoughts on how to debug this and get it to work?

Update:  A coworker who is way smarter than me provided the following bookmarklet, which works at the moment but could break in the future.

javascript&colon;tinyMCE.editors[0].addShortcut('ctrl+shift+v','',(editor) => {editor.execCommand('mceInsertContent', false, window.clipboardData.getData('Text'));})

This doesn't work for me:

Uncaught TypeError: editor is undefined

This appears to be supported now.

On mac/windows: Command/Control -> Shift -> V to paste plain text without formatting.

For me on Chrome still does not work even though I can plain-paste via context menu

Like # people like this

Thanks @James Dellow.. I'll try with Chrome extension

; )

Which extension is meant here?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,400 views 7 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you