{"action":"closed","issue":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/1153","labels_url":"https://api.github.com/repos/tinymce/tinymce/issues/1153/labels{/name}","comments_url":"https://api.github.com/repos/tinymce/tinymce/issues/1153/comments","events_url":"https://api.github.com/repos/tinymce/tinymce/issues/1153/events","html_url":"https://github.com/tinymce/tinymce/issues/1153","id":113928781,"number":1153,"title":"Text disappears when hit enter in ReadOnly mode","user":{"login":"TinyMCE-User","id":14879844,"avatar_url":"https://avatars.githubusercontent.com/u/14879844?v=3","gravatar_id":"","url":"https://api.github.com/users/TinyMCE-User","html_url":"https://github.com/TinyMCE-User","followers_url":"https://api.github.com/users/TinyMCE-User/followers","following_url":"https://api.github.com/users/TinyMCE-User/following{/other_user}","gists_url":"https://api.github.com/users/TinyMCE-User/gists{/gist_id}","starred_url":"https://api.github.com/users/TinyMCE-User/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TinyMCE-User/subscriptions","organizations_url":"https://api.github.com/users/TinyMCE-User/orgs","repos_url":"https://api.github.com/users/TinyMCE-User/repos","events_url":"https://api.github.com/users/TinyMCE-User/events{/privacy}","received_events_url":"https://api.github.com/users/TinyMCE-User/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tinymce/tinymce/labels/bug","name":"bug","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/chrome","name":"chrome","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/closed","name":"closed","color":"5319e7"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/firefox","name":"firefox","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/fixed","name":"fixed","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/imported","name":"imported","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/msie","name":"msie","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/opera","name":"opera","color":"ededed"},{"url":"https://api.github.com/repos/tinymce/tinymce/labels/safari","name":"safari","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-10-09T09:11:04Z","updated_at":"2015-10-28T21:45:40Z","closed_at":"2015-10-28T21:45:40Z","body":"Hello, I've got interesting problem when I run tinyMCE v4.0.7 in readonly mode. When I click somewhere inside the textarea cursor does not appear - which is OK because I am in readonly mode, but when I hit ENTER after I click somewhere in the content it disappears! If I continue to hit ENTER new lines are added...\r\n\r\nHere is my configuration:\r\n\r\n    tinymceReadMode: function(width, minHeight, maxHeight, contentCssPath, textAreaClass) {\r\n        tinyMCE.init({\r\n            selector: \"textarea.\" + textAreaClass,\r\n            theme: \"modern\",\r\n            width: width,\r\n            plugins: 'autoresize',\r\n            content_css: \"/bundles/AlbizaGlobal/tinymce/js/tinymce/themes/code.css,\" + contentCssPath,\r\n            extended_valid_elements: \"a[href|target=_blank],span*,span[*]\",\r\n            verify_html: false,\r\n            menubar: false,\r\n            visual: false,\r\n            toolbar: false,\r\n            statusbar: false,\r\n            readonly: 1,\r\n            autoresize_min_height: minHeight,\r\n            autoresize_max_height: maxHeight,\r\n            setup: function(editor) {\r\n                editor.on('init', function() {\r\n                    setTimeout(function() {\r\n                        editor.execCommand('mceAutoResize', false, undefined, {\r\n                            skip_focus: true,\r\n                            skip_undo: true\r\n                        });\r\n                    }, 1);\r\n                });\r\n            }\r\n        });\r\n    }\r\n\r\nSteps to reproduce:\r\n1.Run tinyMCE in readmode\r\n2.click somewhere inside the content\r\n3.hit enter\r\n\r\n\r\nExpected result: User must not be able to do anything inside the content when readmode is ON\r\n\r\nActual result: User can.\r\n\r\nPS. When the content disappears I receive this error in the console : \r\n\r\nHierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy\r\n\n> _**Legacy information imported from TinyMCE bug tracker:**_\n>\n> _[#T6377](http://archive.tinymce.com/develop/bugtracker_view.php?id=6377) posted by [cyrat](http://archive.tinymce.com/profile.php?name=cyrat)_\n\n> _**Tags:** [firefox msie safari chrome opera tinymce4]_\n> _**Status:** Closed_\n> _**Resolution:** Fixed_\n> _**Attached URL:** none_\n"}}