{"action":"created","issue":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1113","repository_url":"https://api.github.com/repos/froala/wysiwyg-editor","labels_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1113/labels{/name}","comments_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1113/comments","events_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1113/events","html_url":"https://github.com/froala/wysiwyg-editor/issues/1113","id":139007575,"number":1113,"title":"Unwanted Doctype","user":{"login":"capir","id":3576577,"avatar_url":"https://avatars.githubusercontent.com/u/3576577?v=3","gravatar_id":"","url":"https://api.github.com/users/capir","html_url":"https://github.com/capir","followers_url":"https://api.github.com/users/capir/followers","following_url":"https://api.github.com/users/capir/following{/other_user}","gists_url":"https://api.github.com/users/capir/gists{/gist_id}","starred_url":"https://api.github.com/users/capir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capir/subscriptions","organizations_url":"https://api.github.com/users/capir/orgs","repos_url":"https://api.github.com/users/capir/repos","events_url":"https://api.github.com/users/capir/events{/privacy}","received_events_url":"https://api.github.com/users/capir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/froala/wysiwyg-editor/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-07T15:30:44Z","updated_at":"2016-03-08T14:44:02Z","closed_at":"2016-03-08T14:44:02Z","body":"How can i get rid off the Doctype?\r\n\r\n##### Expected behavior.\r\nIf i paste a source without a doctype in fullPage it shouldn't add one for me\r\n\r\n##### Actual behavior.\r\nit adds `<!DOCTYPE html>` \r\n\r\n##### Steps to reproduce the problem.\r\n1. [open editor](https://www.froala.com/wysiwyg-editor/docs/examples/full-page) \r\n2. paste the source\r\n ```html\r\n <html>\r\n\t<head>\r\n\t\t<title></title>\r\n\t</head>\r\n\t<body>test</body>\r\n </html>\r\n ```\r\n\r\n3. open console and call `$('div#froala-editor').froalaEditor('html.get')`\r\n\r\nit returns \r\n```html\r\n<!DOCTYPE html><html><head> <title></title> </head><body><p>test</p></body></html>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/comments/193809804","html_url":"https://github.com/froala/wysiwyg-editor/issues/1113#issuecomment-193809804","issue_url":"https://api.github.com/repos/froala/wysiwyg-editor/issues/1113","id":193809804,"user":{"login":"stefanneculai","id":637004,"avatar_url":"https://avatars.githubusercontent.com/u/637004?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanneculai","html_url":"https://github.com/stefanneculai","followers_url":"https://api.github.com/users/stefanneculai/followers","following_url":"https://api.github.com/users/stefanneculai/following{/other_user}","gists_url":"https://api.github.com/users/stefanneculai/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanneculai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanneculai/subscriptions","organizations_url":"https://api.github.com/users/stefanneculai/orgs","repos_url":"https://api.github.com/users/stefanneculai/repos","events_url":"https://api.github.com/users/stefanneculai/events{/privacy}","received_events_url":"https://api.github.com/users/stefanneculai/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T14:44:02Z","updated_at":"2016-03-08T14:44:02Z","body":"> DOCTYPE Declaration is mandatory for most current markup languages and without one it is impossible to reliably validate a document. ([W3C Doctype Declaration](https://validator.w3.org/docs/help.html#faq-doctype))\r\n\r\nWhen using the fullPage option, the editor is designed to edit an entire page. Also, the editor output is designed to be HTML valid so it doesn't make sense not to have DOCTYPE. Anyway, you could remove it using a RegEx in the HTML. Here is a JS on: `<!DOCTYPE ?([^ ]*) ?([^ ]*) ?\"?([^\"]*)\"? ?\"?([^\"]*)\"?>/i`"}}