mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-24 08:43:13 +08:00
Fix tinyMCE layout in safari [SCI-8426]
This commit is contained in:
parent
2bbeef0775
commit
043ce88434
5 changed files with 14 additions and 3 deletions
|
@ -84,6 +84,10 @@
|
|||
}
|
||||
.tinymce-wrapper {
|
||||
width: 100%;
|
||||
|
||||
.tox-tinymce {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
.tinymce-container {
|
||||
display: flex;
|
||||
|
|
|
@ -73,3 +73,10 @@
|
|||
width: 3em;
|
||||
}
|
||||
}
|
||||
|
||||
.edit-text-result {
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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| %>
|
||||
|
|
|
@ -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| %>
|
||||
|
|
Loading…
Reference in a new issue