Fix tinyMCE layout in safari [SCI-8426]

This commit is contained in:
Anton 2023-05-23 13:28:31 +02:00
parent 2bbeef0775
commit 043ce88434
5 changed files with 14 additions and 3 deletions

View file

@ -84,6 +84,10 @@
}
.tinymce-wrapper {
width: 100%;
.tox-tinymce {
flex-grow: 1;
}
}
.tinymce-container {
display: flex;

View file

@ -73,3 +73,10 @@
width: 3em;
}
}
.edit-text-result {
.form-group {
display: flex;
flex-direction: column;
}
}

View file

@ -27,7 +27,7 @@
:data-placeholder="placeholder"
:data-tinymce-init="`tinymce-${objectType}-description-${objectId}`">
</div>
<div class="form-group">
<div class="flex">
<textarea :id="`${objectType}_textarea_${objectId}`"
class="form-control hidden"
autocomplete="off"

View file

@ -1,4 +1,4 @@
<div class="well">
<div class="well edit-text-result">
<%= bootstrap_form_for(@result, url: result_text_path(format: :json),
data: { 'name-max-length': Constants::NAME_MAX_LENGTH, 'rich-text-max-length': Constants::RICH_TEXT_MAX_LENGTH },
remote: :true) do |f| %>

View file

@ -1,4 +1,4 @@
<div class="well">
<div class="well edit-text-result">
<%= bootstrap_form_for(@result, url: my_module_result_texts_path(format: :json, page: params[:page], order: params[:order]),
data: { 'name-max-length': Constants::NAME_MAX_LENGTH, 'rich-text-max-length': Constants::RICH_TEXT_MAX_LENGTH },
remote: true) do |f| %>