Skip to content

Commit e90fb53

Browse files
authored
chore: Update cke4 bundle to support CMS plugins (#53)
1 parent 8fa50db commit e90fb53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1119
-15
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog
33
=========
44

5+
0.5.2 (16-01-2025)
6+
==================
7+
8+
* fix: Update CKEditor4 vendor files to work with CMS plugins
9+
* fix: Update icon paths for CKEditor4
10+
511
0.5.1 (30-12-2024)
612
==================
713

djangocms_text/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
10. Github actions will publish the new package to pypi
1717
"""
1818

19-
__version__ = "0.5.1"
19+
__version__ = "0.5.2"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4+
*/
5+
6+
.cke_colordialog_colorcell {
7+
width: 12px; /* All cells have equal width which depends on parent width (in this case table parent). Width works more like max-width. */
8+
height: 14px;
9+
padding: 1px; /* Padding is replaced by border for focused cells. Prevents 'jumping' when adding borders. */
10+
}
11+
12+
.cke_colordialog_colorcell.cke_colordialog_focused_light,
13+
.cke_colordialog_colorcell.cke_colordialog_focused_dark {
14+
padding: 0; /* Shrink cell to allow 1px border indicating focus. */
15+
border: 1px dotted #000;
16+
}
17+
18+
.cke_colordialog_colorcell.cke_colordialog_focused_dark {
19+
border-color: #FFF;
20+
}

djangocms_text/contrib/text_ckeditor4/static/djangocms_text/vendor/ckeditor4/plugins/colordialog/dialogs/colordialog.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4+
*/
5+
6+
html.cke_copyformatting_active {
7+
min-height: 100%;
8+
}
9+
10+
/* There is no cursor in CUR format for IE/Edge as that browser
11+
does not support custom cursor in [contenteditable] area.
12+
Ticket for this issue:
13+
https://connect.microsoft.com/IE/feedback/details/1070215/cant-change-cursor-in-contenteditable-using-css */
14+
.cke_copyformatting_disabled,
15+
.cke_copyformatting_disabled a,
16+
.cke_copyformatting_disabled .cke_editable {
17+
cursor: url(../cursors/cursor-disabled.svg) 12 1, auto;
18+
}
19+
20+
.cke_copyformatting_disabled .cke_top a,
21+
.cke_copyformatting_disabled .cke_bottom a {
22+
cursor: default;
23+
}
24+
25+
/* Added `!important` rule as a fix for overriding the cursor by the Table Resize plugin.
26+
The `!important` rule is used because the Table Resize plugin creates a `<div>` which changes the cursor using inlined styles. */
27+
.cke_copyformatting_active,
28+
.cke_copyformatting_active.cke_editable,
29+
.cke_copyformatting_active .cke_editable,
30+
.cke_copyformatting_active a,
31+
.cke_copyformatting_active table,
32+
.cke_copyformatting_active div[data-cke-temp],
33+
.cke_copyformatting_tableresize_cursor div[data-cke-temp] {
34+
cursor: url(../cursors/cursor.svg) 12 1, auto !important;
35+
}
36+
37+
.cke_screen_reader_only {
38+
position: absolute;
39+
clip: rect(1px, 1px, 1px, 1px);
40+
padding: 0;
41+
border: 0;
42+
height: 1px;
43+
width: 1px;
44+
overflow: hidden;
45+
}

djangocms_text/contrib/text_ckeditor4/static/djangocms_text/vendor/ckeditor4/plugins/div/dialogs/div.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)