Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
clientside_validation
Commits
a13a0578
Commit
a13a0578
authored
Oct 14, 2016
by
Jelle Sebreghts
Browse files
Delegate events on the ckeditor instance to the textarea.
parent
c13c50ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
clientside_validation.ckeditor.js
clientside_validation.ckeditor.js
+7
-1
No files found.
clientside_validation.ckeditor.js
View file @
a13a0578
...
@@ -52,8 +52,14 @@
...
@@ -52,8 +52,14 @@
};
};
};
};
var
updateText
=
function
(
instance
)
{
var
updateText
=
function
(
instance
)
{
return
debounce
(
function
()
{
return
debounce
(
function
(
e
)
{
instance
.
updateElement
();
instance
.
updateElement
();
var
event
=
$
.
extend
(
true
,
{},
e
.
data
.
$
);
delete
event
.
target
;
delete
event
.
explicitOriginalTarget
;
delete
event
.
originalTarget
;
delete
event
.
currentTarget
;
$
(
instance
.
element
.
$
).
trigger
(
new
$
.
Event
(
e
.
name
,
event
));
},
250
);
},
250
);
};
};
CKEDITOR
.
on
(
'
instanceReady
'
,
function
()
{
CKEDITOR
.
on
(
'
instanceReady
'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
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