1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00

Add fix/update for processwire/processwire-issues#1597 using suggested fix provided by @Toutouwai

This commit is contained in:
Ryan Cramer
2022-07-29 12:53:48 -04:00
parent 7fd517dcb4
commit eec0975eda
4 changed files with 4 additions and 3 deletions

View File

@@ -349,7 +349,7 @@ $(document).ready(function() {
return false;
});
$(document).on('image-edit', '.InputfieldCKEditor', function() {
$(document).on('image-edit sort-stop', '.InputfieldCKEditor', function() {
// re-initialize CKE when image-edit event triggers (from InputfieldImage.js) via rpsallis
var $editor = $(this).find('.InputfieldCKEditorNormal');
$editor.each(function() {

File diff suppressed because one or more lines are too long

View File

@@ -127,6 +127,7 @@ function InputfieldImage($) {
if($sort.val() != n) $sort.val(n).change();
});
$el.removeClass('InputfieldImageSorting');
ui.item.find('.Inputfield').trigger('sort-stop');
},
update: function(e, ui) {
$el.trigger('sorted', [ ui.item ]);

File diff suppressed because one or more lines are too long