TinyMCE :clicking on icon downloads htm file

TinyMCE is a light weight elegant WYSIWYG editor. I have been using it very often, and its perfectly fine for my purpose. Yet sometimes, when I move a working copy of my website to some servers, then tinymce just breaks down. What happens is, when ever I want to use the visual editor, a htm file gets downloaded. Clicking on HTML icon, or any icons in the visual editor downloads a htm file. To solve this issue, I added the following lines to my .htaccess file in the root web directory.

AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType text/html .html .htm

Comments

Popular posts from this blog

Automate file upload in Selenium IDE

How To Install and Configure Nextcloud

Bruteforce a router to hack admin password using Hydra