Revision 276ed631
Von Sven Schöling vor etwa 1 Jahr hinzugefügt
js/kivi.Order.js | ||
---|---|---|
925 | 925 |
$('#phone_note_edit_text').html(kivi.t8('Edit note')); |
926 | 926 |
$('#phone_note_id').val(id); |
927 | 927 |
$('#phone_note_subject').val(subject); |
928 |
$('#phone_note_body').val(body); |
|
928 |
$('#phone_note_body').val(body).change();
|
|
929 | 929 |
$('#phone_note_delete_button').show(); |
930 | 930 |
}; |
931 | 931 |
|
... | ... | |
933 | 933 |
$('#phone_note_edit_text').html(kivi.t8('Add note')); |
934 | 934 |
$('#phone_note_id').val(''); |
935 | 935 |
$('#phone_note_subject').val(''); |
936 |
$('#phone_note_body').val(''); |
|
936 |
$('#phone_note_body').val('').change();
|
|
937 | 937 |
$('#phone_note_delete_button').hide(); |
938 | 938 |
}; |
939 | 939 |
|
js/kivi.js | ||
---|---|---|
323 | 323 |
// save instance in data |
324 | 324 |
$element.data('ckeditorInstance', editor); |
325 | 325 |
|
326 |
// sync data if javascript changes the underlying textarea |
|
327 |
// make sure to actually send change! $e.val(data) does not trigger it! |
|
328 |
$element.on('change', (e) => { |
|
329 |
editor.setData($element.val()) |
|
330 |
}); |
|
331 |
|
|
326 | 332 |
// handle auto focus |
327 | 333 |
if ($element.hasClass('texteditor-autofocus')) |
328 | 334 |
ns.focus_ckeditor($element); |
Auch abrufbar als: Unified diff
ckeditor5: order phone_note body update