Skip to content

Commit

Permalink
Hide plone.app.textfield text format select.
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Apr 13, 2023
1 parent e8635e9 commit e3f0f40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TODO.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ TODO before final release

- fix issues with portal types vocabularies
- integrate work done at TU Dresden
- P6 move form.widgets.IRichTextBehavior.text_text_format below CK textarea
- fix warning with @@ckeditor_vars.js (text/plain MIME type)
- remove references to Flash (do not forget quickupload)

Done
----

- hide form.widgets.IRichTextBehavior.text_text_format
- hide profiles that should be hidden in ckeditor
- ckeditor_vars depends on plone
- fix issues with CSS
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)
--------------------

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

- Reset forcePasteAsPlainText default to false.
[gotcha]

Expand Down
2 changes: 2 additions & 0 deletions src/collective/ckeditor/browser/statics/ckeditor_plone.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ launchCKInstances = function (ids_to_launch) {
editor.on('blur', update_element);
editor.on('change', update_element);
editor.on('input', update_element);
// hide text format select
jQuery(editor.element.$).parents('form').find('div.fieldTextFormat').hide()
};
})
}
Expand Down

0 comments on commit e3f0f40

Please sign in to comment.