{"action":"closed","issue":{"url":"https://api.github.com/repos/tinymce/tinymce/issues/3986","repository_url":"https://api.github.com/repos/tinymce/tinymce","labels_url":"https://api.github.com/repos/tinymce/tinymce/issues/3986/labels{/name}","comments_url":"https://api.github.com/repos/tinymce/tinymce/issues/3986/comments","events_url":"https://api.github.com/repos/tinymce/tinymce/issues/3986/events","html_url":"https://github.com/tinymce/tinymce/issues/3986","id":263652190,"number":3986,"title":"Tag defined in custom_elements removed from content","user":{"login":"sea75300","id":13407962,"avatar_url":"https://avatars3.githubusercontent.com/u/13407962?v=4","gravatar_id":"","url":"https://api.github.com/users/sea75300","html_url":"https://github.com/sea75300","followers_url":"https://api.github.com/users/sea75300/followers","following_url":"https://api.github.com/users/sea75300/following{/other_user}","gists_url":"https://api.github.com/users/sea75300/gists{/gist_id}","starred_url":"https://api.github.com/users/sea75300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sea75300/subscriptions","organizations_url":"https://api.github.com/users/sea75300/orgs","repos_url":"https://api.github.com/users/sea75300/repos","events_url":"https://api.github.com/users/sea75300/events{/privacy}","received_events_url":"https://api.github.com/users/sea75300/received_events","type":"User","site_admin":false},"labels":[{"id":279513505,"url":"https://api.github.com/repos/tinymce/tinymce/labels/needs:%20more%20info","name":"needs: more info","color":"fad8c7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-07T16:10:05Z","updated_at":"2017-10-10T23:27:41Z","closed_at":"2017-10-10T23:27:41Z","author_association":"NONE","body":"I'm using a custom tag \"<readmore>\" to define an area whose content can be hidden/ displayed on demand. I realised it in an own plugin and insert the given text into TInyMCE using :\r\n\r\n`editor.insertContent('<readmore>' + text + '</readmore>');`\r\n\r\nToday I noticed the tag get's removed when the code above is executed.\r\n\r\nThe tag is defined using `custom_elements: '~readmore'`. \r\n\r\nI tried to replace the line above with `editor.execCommand('mceInsertContent', false, '<readmore>' + text + '</readmore>');` with the same result. I also added the tag to \"valid_children\" and/or \"extended_valid_elements\" but it still get's removed.\r\n\r\nsee http://fiddle.tinymce.com/Lbgaab/1\r\n\r\nError occurs with TinyMCE 4.6.7 and 4.7, v4.6.6 works fine. No error messages occurring."}}
{"actor":{"display_login":"sea75300"}}