question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feature request: clickable links in read-only editors

See original GitHub issue

Do you want to request a feature or report a bug?

feature

What is the current behavior?

Links can’t be clicked in a read-only editor.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tinymce.com or similar.

http://fiddle.tinymce.com/4sgaab/1 It’s not a bug, but it’d make sense to have an option to make links work. Blocking clicks on links doesn’t really fit in with the general idea of inline editing. Hypertext should exhibit its usual behavior when the edit mode is off.

Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE?

It sort of worked before 4.7.12 because a private API could be used: editor._clickBlocker.unbind(); However, that API has been refactored away in https://github.com/tinymce/tinymce/commit/5d4e4d7c6f8ad722fd85c71405528e72a55ae5ab.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lnewsoncommented, Apr 15, 2020

@shashankmeyar I just tested and it’s working fine for me in 5.2.1. Note that it should not work by just clicking the link, you’ll need to “CTRL+click” or right click and open in a new tab. The reason being that clicking normally will navigate the user away from the content and potentially cause data to be lost, so we don’t plan to allow that behaviour.

If you can still reproduce it taking into account the above, then please log a new issue.

1reaction
TheSpydercommented, May 1, 2019

It used to be possible to select text in readonly mode, until the fix for #4249 (which @thorn0 linked in his report). We are tracking a new fix for this and will update this ticket when it’s merged.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HtmlEditor - Open hyperlink while readOnly is false
Is there a workaround to accomplish my goal of having the editor read only false and still be able to open the link...
Read more >
12133 (Links not opening when CKEditor is in readOnly mode)
One is new feature - ability to open links in read only mode. Second is a bug - editor loses focus when links...
Read more >
CKEditor - make links clickable (when in read-only mode)
replace( 'text', { height: '200px' }); editor.setReadOnly(false);. What I want to do is make all links inside the CKEditor clickable when the ...
Read more >
How to Have Files Open in Read-Only in SharePoint Online
More details: “If someone wants to edit, they can then click on the editing feature and edit the document. This would help people...
Read more >
Share a read-only link - Webflow University
This link will give collaborators access to the Editor where they'll be able to see and edit content. Any changes they make will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found