Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sluc23
ckeditor5
Commits
0028c608
Commit
0028c608
authored
Jan 20, 2022
by
colemanw
Browse files
Fix update-on-blur for the sake of Angular pages like CiviMail
Fixes
extensions/ckeditor5#6
parent
5c9d12da
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/wysiwyg/crm.ckeditor5.js
View file @
0028c608
...
...
@@ -209,6 +209,13 @@
instances
[
name
]
=
editor
;
// Update source element on blur; especially important for javascript-based UIs
editor
.
editing
.
view
.
document
.
on
(
'
blur
'
,
function
()
{
editor
.
updateSourceElement
();
$
(
item
).
trigger
(
"
blur
"
);
$
(
item
).
trigger
(
"
change
"
);
});
editor
.
on
(
'
destroy
'
,
function
(
e
)
{
var
name
=
$
(
e
.
source
.
sourceElement
).
attr
(
'
name
'
)
||
$
(
e
.
source
.
sourceElement
).
attr
(
'
id
'
);
delete
instances
[
name
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment