Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
6bc8777a
Unverified
Commit
6bc8777a
authored
11 months ago
by
Manuel Leduc
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-22146: Black square when drag-and-dropping an image in WYSIWYG (#3102)
parent
9803cdb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-filter/plugin.js
+9
-1
9 additions, 1 deletion
...m-ckeditor-plugins/src/main/webjar/xwiki-filter/plugin.js
with
9 additions
and
1 deletion
xwiki-platform-core/xwiki-platform-ckeditor/xwiki-platform-ckeditor-plugins/src/main/webjar/xwiki-filter/plugin.js
+
9
−
1
View file @
6bc8777a
...
...
@@ -173,7 +173,15 @@
event
.
data
.
dataValue
.
filter
(
new
CKEDITOR
.
htmlParser
.
filter
({
elements
:
{
img
:
function
(
element
)
{
delete
element
.
attributes
[
'
data-widget
'
];
const
dataWidgetAttribute
=
element
.
attributes
[
'
data-widget
'
];
const
dataCkeUploadIdAttribute
=
element
.
attributes
[
'
data-cke-upload-id
'
];
const
isUploadImageWidget
=
dataWidgetAttribute
===
'
uploadimage
'
;
// Cleanup data-widget attributes on images. Except for 'uploadimage' which is only cleaned up when
// the image is not currently being uploaded (i.e., has a data-cke-upload-id attribute)
if
(
!
isUploadImageWidget
||
dataCkeUploadIdAttribute
===
undefined
)
{
delete
element
.
attributes
[
'
data-widget
'
];
}
}
}
}));
...
...
This diff is collapsed.
Click to expand it.
Git Mirror User
@gitmirror
mentioned in commit
2bc57391
·
11 months ago
mentioned in commit
2bc57391
mentioned in commit 2bc573913178633d70cd06f05a2caaa57cd5d10c
Toggle commit list
Git Mirror User
@gitmirror
mentioned in commit
555491a8
·
11 months ago
mentioned in commit
555491a8
mentioned in commit 555491a8d963fcf031c3792a73ec7410518a8f39
Toggle commit list
Git Mirror User
@gitmirror
mentioned in commit
72bf5510
·
11 months ago
mentioned in commit
72bf5510
mentioned in commit 72bf551035b8fd02ae9d739c5f818bd92ad9c802
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment