Skip to content

Commit

Permalink
WIP: Add ckeditor
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Crome committed Aug 15, 2024
1 parent 7cf4b0c commit 6d774d8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions share/static/js/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,21 @@ jQuery(function () {
}
});

jQuery(document).on('mouseenter', 'table.inline-edit div.editable .edit-icon', function (e) {
const edit_description_modal = jQuery(this).closest('.editable').find('div.modal-edit-description:not(.loaded)');
if ( edit_description_modal.length ) {
jQuery(this).closest('.edit-icon').on('click', function(e) {
var id = edit_description_modal.attr('data-ticket-id');
jQuery.get(
RT.Config.WebHomePath + "/Helpers/TicketDescription?TicketId=" + id,
showModal
);
ReplaceAllTextareas();
edit_description_modal.addClass('loaded');
});
}
});

jQuery(document).on('change', 'div.editable.editing form :input', function () {
jQuery(this).closest('form').data('changed', true);
});
Expand Down

0 comments on commit 6d774d8

Please sign in to comment.