[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [FIX] Tracker item: CKEDITOR not defined when the form is submitted

"Domeshow Emmanuel \(@Domeshow\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <689079093bcb8_2cd5fac2493@gitlab-sidekiq-low-urgency-cpu-bound-v2-8647874c67-j7hpr.mail>

Domeshow Emmanuel pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki


Commits:
ce5cd9f3 by MAGENE Sem Joel at 2025-08-04T12:03:48+03:00
[FIX] Tracker item: CKEDITOR not defined when the form is submitted
---
* [FIX] Tracker item: CKEDITOR not defined when the form is submitted

See merge request tikiwiki/tiki!8173

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-jquery.js


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -4103,8 +4103,10 @@ $(document).on('tiki.modal.redraw', '.modal.fade', function () {
                     if ($submit.data("alt_controller") && $submit.data("alt_action")) {
                         $submit.parents("form").attr("action", $.service($submit.data("alt_controller"), $submit.data("alt_action")));
                     }
-                    for (var instance in CKEDITOR.instances) {
-                        CKEDITOR.instances[instance].fire("blur");
+                    if (typeof CKEDITOR !== "undefined" && CKEDITOR.instances) {
+                        for (var instance in CKEDITOR.instances) {
+                            CKEDITOR.instances[instance].fire("blur");
+                        }
                     }
                     $submit.trigger("click");
                     if (typeof $submit.parents("form").validate !== "function") {



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ce5cd9f386273ae5bbe16dce4acda082600da9db

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ce5cd9f386273ae5bbe16dce4acda082600da9db
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.