{"id":2671,"date":"2017-07-31T19:49:12","date_gmt":"2017-07-31T19:49:12","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=2671"},"modified":"2023-08-18T07:25:24","modified_gmt":"2023-08-18T07:25:24","slug":"tinymce-html-export-to-word-doc","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/","title":{"rendered":"How to Export TinyMCE Content to MS Word Document"},"content":{"rendered":"<p>TinyMCE is the most advanced WYSIWYG HTML editor used in the web application for adding HTML editor to textarea. TinyMCE provides a simple way to convert Textarea to an HTML editor on the web page. In the earlier tutorial, we provided the step-by-step guide and example code to <a href=\"https:\/\/www.codexworld.com\/add-wysiwyg-html-editor-to-textarea-website\/\">add TinyMCE WYSIWYG editor to textarea<\/a>. But sometimes TinyMCE functionality needs to be extended with some advanced features. Exporting editor content to Word document is one of the most desired functionality for TinyMCE editor.<\/p>\n<p>In this tutorial, we will show how you can easily add the export feature to the TinyMCE editor using a plugin. The plugin extends the functionality of the TinyMCE editor. Using the TinyMCE plugin you can <b>export TinyMCE editor content<\/b> to MS Word document.<\/p>\n<p>We have developed a simple and powerful TinyMCE plugin called <a href=\"https:\/\/www.codexworld.com\/scripts\/tinymce-export-to-doc-plugin\/\">ExportToDoc<\/a>. The ExportToDoc plugin adds export functionality to TinyMCE and helps the user to <b>export HTML content to Microsoft Word document<\/b> and save it in <code>.doc<\/code> format.<\/p>\n<h2>TinyMCE ExportToDoc Plugin<\/h2>\n<p>The <a href=\"https:\/\/www.codexworld.com\/scripts\/tinymce-export-to-doc-plugin\/\">ExportToDoc plugin<\/a> adds an export button to the menu of the TinyMCE editor. By clicking the <b>Export to Doc<\/b> button, TinyMCE editor content HTML will be converted to Microsoft Word document in the same format and you can save it to your computer as a .doc file.<\/p>\n<h2>Installation<\/h2>\n<p>To enable the TinyMCE ExportToDoc plugin, you need to do the following configuration.<\/p>\n<ul class=\"bullet_disk_list\">\n<li>Add ExportToDoc to plugins list.<\/li>\n<li>Add <b>Export to Doc<\/b> button to the toolbar.<\/li>\n<\/ul>\n<p><b>Example<\/b> <\/p>\n<pre style=\"color: rgb(68, 68, 68);\">tinymce.init({\r\n  selector: <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'textarea'<\/span>,\r\n  plugins: [\r\n    <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'ExportToDoc'<\/span>\r\n  ],\r\n  toolbar: <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'ExportToDoc'<\/span>\r\n});<\/pre>\n<h2>Configuration Options<\/h2>\n<p>These settings affect the execution of the ExportToDoc plugin.<\/p>\n<p><b>etd_file_name:<\/b> This option allows you to specify the file name of the exported document.<\/p>\n<ul>\n<li>Type: String (The default value is <code>tinymce-content<\/code>.)<\/li>\n<\/ul>\n<p><b>etd_button_text:<\/b> This option allows you to specify the text label of the export button.<\/p>\n<ul>\n<li>Type: String (The default value is <code>Export to Doc<\/code>.)<\/li>\n<\/ul>\n<p><b>Example<\/b><\/p>\n<pre style=\"color: rgb(68, 68, 68);\">tinymce.init({\r\n  selector: <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'textarea'<\/span>,\r\n  plugins: [\r\n    <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'ExportToDoc'<\/span>\r\n  ],\r\n  toolbar: <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'ExportToDoc'<\/span>,\r\n  etd_file_name: <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'tinymce-content'<\/span>,\r\n  etd_button_text: <span class=\"hljs-string\" style=\"color: rgb(136, 0, 0);\">'Export to Doc'<\/span>\r\n});<\/pre>\n<h2>TinyMCE Editor with Export to Word Plugin<\/h2>\n<p>This example adds a full featured TinyMCE editor to the textarea with Export to MS word feature.<\/p>\n<p><b>HTML:<\/b><\/p>\n<pre style=\"color: rgb(95, 94, 78);\"><span class=\"hljs-tag\" style=\"color: rgb(186, 98, 54);\">&lt;<span class=\"hljs-name\" style=\"color: rgb(186, 98, 54);\">textarea<\/span> <span class=\"hljs-attr\">id<\/span>=<span class=\"hljs-string\" style=\"color: rgb(125, 151, 38);\">\"myTextarea\"<\/span>&gt;<\/span><span class=\"hljs-tag\" style=\"color: rgb(186, 98, 54);\">&lt;\/<span class=\"hljs-name\" style=\"color: rgb(186, 98, 54);\">textarea<\/span>&gt;<\/span><\/pre>\n<p><b>JavScript:<\/b><\/p>\n<pre style=\"color: rgb(95, 94, 78);\"><span class=\"hljs-tag\" style=\"color: rgb(186, 98, 54);\">&lt;<span class=\"hljs-name\" style=\"color: rgb(186, 98, 54);\">script<\/span>&gt;<\/span>\r\n<span style=\"color: rgb(110, 107, 94);\">tinymce.init({\r\n    selector: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'#myTextarea'<\/span>,\r\n    height: <span class=\"hljs-number\" style=\"color: rgb(182, 86, 17);\">400<\/span>,\r\n    plugins: [\r\n        <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'advlist'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'autolink'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'link'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'image'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'lists'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'charmap'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'preview'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'anchor'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'pagebreak'<\/span>,\r\n        <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'searchreplace'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'wordcount'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'visualblocks'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'code'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'fullscreen'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'insertdatetime'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'media'<\/span>,\r\n        <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'table'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'emoticons'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'template'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'help'<\/span>, <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'ExportToDoc'<\/span>\r\n    ],\r\n    toolbar: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'undo redo | styles | bold italic | alignleft aligncenter alignright alignjustify | '<\/span> +\r\n        <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'bullist numlist outdent indent | link image | print preview media fullscreen | '<\/span> +\r\n        <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'forecolor backcolor emoticons | help ExportToDoc'<\/span>,\r\n    etd_file_name: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'tinymce-content'<\/span>, <span class=\"hljs-comment\" style=\"color: rgb(125, 122, 104);\">\/\/ Set name of the word doc file<\/span>\r\n    etd_button_text: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'Export to Doc'<\/span>, <span class=\"hljs-comment\" style=\"color: rgb(125, 122, 104);\">\/\/ Set label of the export button<\/span>\r\n    menu: {\r\n        favs: { title: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'My Favorites'<\/span>, items: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'code visualaid | searchreplace | emoticons'<\/span> }\r\n    },\r\n    menubar: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'favs file edit view insert format tools table help'<\/span>,\r\n    content_style: <span class=\"hljs-string\" style=\"color: rgb(96, 172, 57);\">'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }'<\/span>\r\n});<\/span>    \r\n<span class=\"hljs-tag\" style=\"color: rgb(186, 98, 54);\">&lt;\/<span class=\"hljs-name\" style=\"color: rgb(186, 98, 54);\">script<\/span>&gt;<\/span><\/pre>\n<p>You can also specify the textarea element as a selector, like <code>selector: 'textarea'<\/code>.<\/p>\n<p class=\"seeAlso\"><span><\/span><a href=\"https:\/\/www.codexworld.com\/scripts\/tinymce-export-to-doc-plugin\/\">Download ExportToDoc TinyMCE Plugin<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TinyMCE is the most advanced WYSIWYG HTML editor used in the web application for adding HTML editor to textarea. TinyMCE provides a simple way to convert Textarea to an HTML editor on the web page. <\/p>\n","protected":false},"author":1,"featured_media":5451,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[314,300,179,170,183,331],"class_list":["post-2671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-export","tag-exportdoc","tag-html","tag-text-editor","tag-tinymce","tag-word","cat-10-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Export TinyMCE Content to MS Word Document - CodexWorld<\/title>\n<meta name=\"description\" content=\"TinyMCE export to word - Learn how to export TinyMCE editor HTML content to Microsoft word document. Example code to export WYSIWYG editor content to doc file using TinyMCE plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Export TinyMCE Content to MS Word Document - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"TinyMCE export to word - Learn how to export TinyMCE editor HTML content to Microsoft word document. Example code to export WYSIWYG editor content to doc file using TinyMCE plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-31T19:49:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-18T07:25:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/07\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"How to Export TinyMCE Content to MS Word Document\",\"datePublished\":\"2017-07-31T19:49:12+00:00\",\"dateModified\":\"2023-08-18T07:25:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/\"},\"wordCount\":347,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png\",\"keywords\":[\"Export\",\"ExportDoc\",\"HTML\",\"Text Editor\",\"TinyMCE\",\"Word\"],\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/\",\"name\":\"How to Export TinyMCE Content to MS Word Document - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png\",\"datePublished\":\"2017-07-31T19:49:12+00:00\",\"dateModified\":\"2023-08-18T07:25:24+00:00\",\"description\":\"TinyMCE export to word - Learn how to export TinyMCE editor HTML content to Microsoft word document. Example code to export WYSIWYG editor content to doc file using TinyMCE plugin.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2017\\\/07\\\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png\",\"width\":1920,\"height\":1080,\"caption\":\"export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/tinymce-html-export-to-word-doc\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Export TinyMCE Content to MS Word Document\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Export TinyMCE Content to MS Word Document - CodexWorld","description":"TinyMCE export to word - Learn how to export TinyMCE editor HTML content to Microsoft word document. Example code to export WYSIWYG editor content to doc file using TinyMCE plugin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/","og_locale":"en_US","og_type":"article","og_title":"How to Export TinyMCE Content to MS Word Document - CodexWorld","og_description":"TinyMCE export to word - Learn how to export TinyMCE editor HTML content to Microsoft word document. Example code to export WYSIWYG editor content to doc file using TinyMCE plugin.","og_url":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2017-07-31T19:49:12+00:00","article_modified_time":"2023-08-18T07:25:24+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/07\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"How to Export TinyMCE Content to MS Word Document","datePublished":"2017-07-31T19:49:12+00:00","dateModified":"2023-08-18T07:25:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/"},"wordCount":347,"commentCount":3,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/07\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png","keywords":["Export","ExportDoc","HTML","Text Editor","TinyMCE","Word"],"articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/","url":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/","name":"How to Export TinyMCE Content to MS Word Document - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/07\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png","datePublished":"2017-07-31T19:49:12+00:00","dateModified":"2023-08-18T07:25:24+00:00","description":"TinyMCE export to word - Learn how to export TinyMCE editor HTML content to Microsoft word document. Example code to export WYSIWYG editor content to doc file using TinyMCE plugin.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/07\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/07\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png","width":1920,"height":1080,"caption":"export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/tinymce-html-export-to-word-doc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"How to Export TinyMCE Content to MS Word Document"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2017\/07\/export-tinymce-content-to-ms-word-document-doc-file-plugin-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-H5","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/2671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=2671"}],"version-history":[{"count":7,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/2671\/revisions"}],"predecessor-version":[{"id":5450,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/2671\/revisions\/5450"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/5451"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=2671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=2671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=2671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}