This module sends javascript code to the browser (when "?q=quicktags" is accessed), but this javascript is sent as "text/html". The following line should be added to quicktags_javascript():

drupal_set_header('Content-Type: text/javascript; charset=utf-8');

Comments

Bèr Kessels’s picture

I am not too famil!iar with this Headings stuff. Can you give a bit more background? Does the current system break anywhere?

marc.bau’s picture

if the file is a javascript file you must set this "MIME Type" header! This will not break anything! After this change it is technical correct... without it is not.

marc.bau’s picture

any if you don't set the mimetype it will break in some browsers... i saw this in shit IE for e.g....

mooffie’s picture

... it will break in some browsers

Safari is one example:

http://nubyonrails.com/articles/2006/02/01/rjs-and-content-type-header

Bèr Kessels’s picture

Status: Active » Fixed

Fixed in 4.7 and HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)