mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 00:24:42 +08:00
Fix table scroll wrapping [SCI-7569]
This commit is contained in:
parent
96aea292fb
commit
3ea059529d
3 changed files with 5 additions and 3 deletions
2
app/assets/javascripts/sitewide/tiny_mce.js
vendored
2
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
@ -234,6 +234,7 @@ var TinyMCE = (function() {
|
|||
setTimeout(() => {
|
||||
$(editor.editorContainer).addClass('show');
|
||||
$('.tinymce-placeholder').remove();
|
||||
updateScrollPosition($(editor.editorContainer).closest('.tinymce-container'));
|
||||
}, 400);
|
||||
|
||||
// Init saved status label
|
||||
|
@ -310,7 +311,6 @@ var TinyMCE = (function() {
|
|||
editorForm.find('.tinymce-status-badge').addClass('hidden');
|
||||
editorForm.find('.tinymce-view').removeClass('hidden');
|
||||
editor.remove();
|
||||
|
||||
updateScrollPosition(editorForm);
|
||||
if (onSaveCallback) { onSaveCallback(); }
|
||||
})
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
},
|
||||
mounted() {
|
||||
if (this.isNew) {
|
||||
this.enableEditMode()
|
||||
this.enableEditMode();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -145,7 +145,9 @@
|
|||
return $(`meta[name=\'${name}\']`).attr('content');
|
||||
},
|
||||
wrapTables() {
|
||||
$(this.$el).find('.tinymce-view table').wrapAll('<div style="overflow: auto"></div>');
|
||||
this.$nextTick(() => {
|
||||
$(this.$el).find('.tinymce-view table').css('float', 'none').wrapAll('<div style="overflow: auto"></div>');
|
||||
});
|
||||
},
|
||||
initCharacterCount() {
|
||||
if (!this.editorInstance()) return;
|
||||
|
|
Loading…
Add table
Reference in a new issue