Fix #877 insert uploaded image even if CKEditor is in source mode

This commit is contained in:
Kijin Sung 2024-05-15 11:02:22 +09:00
parent f57cc96e3f
commit f50772c1dd
3 changed files with 35 additions and 2 deletions

View file

@ -103,6 +103,9 @@ body.cke_editable {
padding: 10px;
@include light-dark($colorset);
}
textarea.cke_source.cke_editable {
padding: 10px;
}
body.color_scheme_dark.cke_auto_dark_mode .cke_wysiwyg_div {
background-color: #333;
color: #fff;

View file

@ -199,6 +199,13 @@ function _getCkeInstance(editor_sequence) {
return $('#ckeditor_instance_' + editor_sequence).data('cke_instance');
}
/**
* Legacy function to get the container element for CKEditor.
*/
function _getCkeContainer(editor_sequence) {
return $('#ckeditor_instance_' + editor_sequence);
}
/**
* Legacy function to get HTML content from CKEditor.
*/