Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changelog
Unreleased
==========

* Removed inline editing toggle button from touch devices (where it is inactive anyways) and collapsed menus


5.1.0 (2022-03-24)
==================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
.cke_reset_all div.cke_dialog_page_contents > table {
height: 100%;
}

div.cms .cms-more-buttons a.cms-btn.cms-edit-toggle {
display: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@
CMS.CKEditor.touchdevice = 'ontouchstart' in window || navigator.msMaxTouchPoints; // on touch device?
if (!CMS.CKEditor.touchdevice) { // no inline editing on touch devices to not interfere with scrolling
CMS.CKEditor.initInlineEditors();
$('div.cms a.cms-btn.cms-edit-toggle').show();
} else {
$('div.cms a.cms-btn.cms-edit-toggle').hide();
}
CMS.CKEditor.initAdminEditors();
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<a href="{{ url }}" title="{{ name }}" style="font-family: django-cms-iconfont;" class="cms-btn{% if active %} cms-btn-active{% endif %}{% if disabled %} cms-btn-disabled{% endif %}"><span{% if extra_classes %} class="{{ extra_classes|join:' ' }}"{% endif %}></span></a>
<a href="{{ url }}" title="{{ name }}" style="font-family: django-cms-iconfont;" class="cms-btn cms-edit-toggle{% if active %} cms-btn-active{% endif %}{% if disabled %} cms-btn-disabled{% endif %}"><span{% if extra_classes %} class="{{ extra_classes|join:' ' }}"{% endif %}></span></a>
2 changes: 1 addition & 1 deletion djangocms_text_ckeditor/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


# this path is changed automatically whenever you run `gulp bundle`
PATH_TO_JS = 'djangocms_text_ckeditor/js/dist/bundle-1c5205cc04.cms.ckeditor.min.js'
PATH_TO_JS = 'djangocms_text_ckeditor/js/dist/bundle-3d3a4963e8.cms.ckeditor.min.js'


class TextEditorWidget(forms.Textarea):
Expand Down