[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][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 <68908bdc55f9f_2cd5fe8271bd@gitlab-sidekiq-low-urgency-cpu-bound-v2-64df5c8bd6-8jn22.mail>

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


Commits:
f81c0998 by MAGENE Sem Joel at 2025-08-04T13:23:57+03:00
[BP][FIX] Tracker item: CKEDITOR not defined when the form is submitted
---
* [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

(cherry picked from commit ce5cd9f386273ae5bbe16dce4acda082600da9db)

See merge request tikiwiki/tiki!8174

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-jquery.js


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -4263,8 +4263,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/f81c09980c9f3f701c84b305dfcf661324955c3b

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f81c09980c9f3f701c84b305dfcf661324955c3b
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.