mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-18 02:54:39 +08:00
Merge pull request #5841 from artoscinote/ma_SCI_8894
Fix tinymce loading placeholders for text elements [SCI-8894]
This commit is contained in:
commit
ff83b97d7b
2 changed files with 2 additions and 2 deletions
2
app/javascript/packs/tiny_mce.js
vendored
2
app/javascript/packs/tiny_mce.js
vendored
|
@ -178,7 +178,7 @@ window.TinyMCE = (() => {
|
|||
// Hide element containing HTML view of RTE field
|
||||
const tinyMceContainer = $(selector).closest('form').find('.tinymce-view');
|
||||
const tinyMceInitSize = tinyMceContainer.height();
|
||||
$(selector).closest('.form-group')
|
||||
$(selector).closest('.form-group, .tinymce-editor-container')
|
||||
.before(`<div class="tinymce-placeholder" style="height:${tinyMceInitSize}px"></div>`);
|
||||
tinyMceContainer.addClass('hidden');
|
||||
const plugins = `
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
:data-placeholder="placeholder"
|
||||
:data-tinymce-init="`tinymce-${objectType}-description-${objectId}`">
|
||||
</div>
|
||||
<div class="flex">
|
||||
<div class="flex tinymce-editor-container">
|
||||
<textarea :id="`${objectType}_textarea_${objectId}`"
|
||||
class="form-control hidden"
|
||||
autocomplete="off"
|
||||
|
|
Loading…
Add table
Reference in a new issue