mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-19 22:35:19 +00:00
1 parent
e5d3c5fa33
commit
f0b4e1b719
7 files changed
+161
-9
No files matched your search
+11
@@ -81,6 +81,17 @@
|
||||
|
||||
ck = CKEDITOR.replace(elm[0], options);
|
||||
|
||||
if (attr.mdAutofocus && $parse(attr.mdAutofocus)($scope)) {
|
||||
// Autofocus is enabled
|
||||
ck.on('instanceReady', function(event) {
|
||||
ck.focus();
|
||||
});
|
||||
ck.on('focus', function(event) {
|
||||
if (attr.ckFocus) {
|
||||
$parse(attr.ckFocus)($scope, {'$event': event});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Update the model whenever the content changes
|
||||
ck.on('change', function() {
|
||||
|
||||
Reference in new issue
Block a user