Skip to content
Permalink
Browse files

issue: Redactor Reset Buttons

This addresses an issue where since the Redactor upgrade the Reset buttons
do not work anymore. This is due to the code referencing old plugin/module
code that either no longer exists or has changed names. This updates the
reset button code to reference the new Redactor plugin/module methods.
  • Loading branch information...
JediKev committed Nov 18, 2019
1 parent ed9f63f commit 8078d4d1e8b6f43f003332b1667420e6169608a8
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/redactor-osticket.js
@@ -416,16 +416,16 @@ $(function() {
if (file)
file.remove();
if (el.attr('data-draft-id')) {
el.redactor('plugin.draft.delete');
el.redactor('plugin.draft.deleteDraft');
el.attr('data-draft-id', '');
}
else {
try {
el.redactor('module.source.set', '');
el.redactor('source.setCode', '');
}
catch (error) {
el.redactor(); //reinitialize redactor
el.redactor('module.source.set', '');
el.redactor('source.setCode', '');
}
}
});

0 comments on commit 8078d4d

Please sign in to comment.
You can’t perform that action at this time.