Skip to content

Commit

Permalink
Fix warning with @@ckeditor_vars.js (text/plain MIME type)
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Apr 13, 2023
1 parent e3f0f40 commit f9ce234
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TODO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ TODO before final release

- fix issues with portal types vocabularies
- integrate work done at TU Dresden
- fix warning with @@ckeditor_vars.js (text/plain MIME type)
- remove references to Flash (do not forget quickupload)

Done
----

- fix warning with @@ckeditor_vars.js (text/plain MIME type)
- hide form.widgets.IRichTextBehavior.text_text_format
- hide profiles that should be hidden in ckeditor
- ckeditor_vars depends on plone
Expand Down
3 changes: 3 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
5.0.0a6 (unreleased)
--------------------

- Fix warning with @@ckeditor_vars.js (text/plain MIME type)
[gotcha]

- Hide plone.app.textfield text format select.
[gotcha]

Expand Down
4 changes: 2 additions & 2 deletions src/collective/ckeditor/browser/ckeditorview.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ def getCK_plone_config(self):

def getCK_vars(self):
request = self.request
response = request.RESPONSE
# response.setHeader('Content-Type', 'application/x-javascript')
response = request.response
response.setHeader('Content-Type', 'text/javascript')
return CK_VARS_TEMPLATE % {'portal_url': self.portal_url}

def getCustomTemplatesConfig(self, customTemplates):
Expand Down

0 comments on commit f9ce234

Please sign in to comment.