Arthur Bogaart pushed to branch bugfix/CMS-10023 at cms-community / hippo-cms


Commits:
0e21821e by Arthur Bogaart at 2016-07-12T15:56:55+02:00
CMS-10023 Toggle button state for 300ms after clicking image link

- - - - -


1 changed file:

- 
richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js


Changes:

=====================================
richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js
=====================================
--- 
a/richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js
+++ 
b/richtext/ckeditor/plugins/src/main/resources/ckeditor/plugins/hippopicker/plugin.js
@@ -259,6 +259,13 @@
     }
 
     function openImagePickerDialog(imgElement) {
+      var command = editor.getCommand('pickImage');
+      command.toggleState();
+
+      setTimeout(function () {
+        command.toggleState();
+      }, PREVENT_DBLCLICK_DELAY);
+
       var callbackParameters = {};
 
       if (imgElement !== null) {



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-cms/commit/0e21821ec7e2160fa2909987d2e34855b3affb81
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to