Error message seen ("A draft will be saved...") when clicking "Insert Link" button
Asked by Shilpa R:

The customer encounters issues when clicking page editor menu button "**Insert Link"**

```
`A draft will be saved. You can resume editing this draft the next time you openthe editor or view all your drafts in your profile.Press OK to continue, or Cancel to stay on the current page.`
```

Intermittently seen on Chrome, Firefox, and Chrome incognito

![](https://getsupport.atlassian.com/images/icons/emoticons/check.png) Create a new page and add the link

![](https://getsupport.atlassian.com/images/icons/emoticons/error.png) Open an existing page and add a link

**NOTE**: Currently this is the workaround provided.

#### Workaround {#toc-hId--653251952}

![](https://getsupport.atlassian.com/images/icons/emoticons/check.png) Type **\[** and enter part of the page name / link name, then select the page from the list.

Using Keyboard Shortcut yo insert a link on a page:

1. Select some text or position your cursor where you want to insert the link
2. Choose **Link** on the toolbar or use the [keyboard shortcut](https://confluence.atlassian.com/doc/keyboard-shortcuts-139456.html) **Ctrl+K**
3. Select a page, blog post or attachment, or enter an external URL
4. Enter or modify the link text (this is the text that will appear on the page. If this field is left blank, the page name or URL will be used as the link text.)
5. Choose **Insert**

Can someone please help?


Answers:
author: Synaptics Tony Chang
body: I experience the same issue in 7.4.1 and 7.5.  

I find the JavaScript error.  

<br />

Uncaught TypeError: Cannot read property 'open' of undefined  
at qC.\<anonymous\> (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at i.exec.\<computed\> (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at Im.execCommand (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at qC.execCommand (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at qC.a \[as execCommand\] (batch.js?enable.legacy.edit.in.office=true\&locale=en-US:2174)  
at Vi (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at e.\<anonymous\> (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at e.value (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at HTMLLIElement.\<anonymous\> (com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5)  
at HTMLDivElement.dispatch (batch.js?enable.legacy.edit.in.office=true\&locale=en-US:44)  
at HTMLDivElement.v.handle (batch.js?enable.legacy.edit.in.office=true\&locale=en-US:44)  
(anonymous) @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
i.exec.\<computed\> @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
execCommand @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
execCommand @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
a @ batch.js?enable.legacy.edit.in.office=true\&locale=en-US:2174  
Vi @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
(anonymous) @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
value @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
(anonymous) @ com.atlassian.confluence.plugins.confluence-editor-v4:editor-resources-v4.js?locale=en-US:5  
dispatch @ batch.js?enable.legacy.edit.in.office=true\&locale=en-US:44  
v.handle @ batch.js?enable.legacy.edit.in.office=true\&locale=en-US:44


Tags: confluence-server

server