Skip to content

Commit

Permalink
Merge pull request #2432 from QuizandSurveyMaster/CU-86cu3vap2-make-t…
Browse files Browse the repository at this point in the history
…inymce-toolbar-options-dynamic

Added hook to modify toolbar options
  • Loading branch information
zubairraeen authored Dec 28, 2023
2 parents 30037dd + a7b587c commit 133f489
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/qsm-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1575,6 +1575,7 @@ var QSMContact;
},
quicktags: true,
};
jQuery(document).trigger('qsm_tinyMCE_settings_after', [settings]);
wp.editor.initialize('email-template-' + QSMAdminEmails.total, settings);
}
jQuery(document).trigger('qsm_after_add_email_block', [conditions, to, subject, content, replyTo, QSMAdminEmails.total]);
Expand Down Expand Up @@ -2301,6 +2302,7 @@ var import_button;
},
quicktags: true,
};
jQuery(document).trigger('qsm_tinyMCE_settings_after', [settings]);
wp.editor.initialize(textarea_id, settings);
var anser = QSMQuestion.prepareQuestionText(answer[0]);
$(textarea_id).val(anser);
Expand Down Expand Up @@ -2541,6 +2543,7 @@ var import_button;
},
quicktags: true,
};
jQuery(document).trigger('qsm_tinyMCE_settings_after', [settings]);
wp.editor.initialize('question-text', settings);
wp.editor.initialize('correct_answer_info', settings);
},
Expand Down Expand Up @@ -3483,6 +3486,7 @@ var import_button;
},
quicktags: true,
};
jQuery(document).trigger('qsm_tinyMCE_settings_after', [settings]);
wp.editor.initialize('results-page-' + QSMAdminResults.total, settings);
jQuery(document).trigger('qsm_after_add_result_block', [conditions, page, redirect, QSMAdminResults.total]);
},
Expand Down

0 comments on commit 133f489

Please sign in to comment.