mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Fix links in locked step texts elements [SCI-7224]
This commit is contained in:
parent
b36a91ef85
commit
07f0142789
3 changed files with 8 additions and 1 deletions
|
@ -10,6 +10,12 @@
|
|||
flex: 0;
|
||||
}
|
||||
|
||||
.view-text-element {
|
||||
a {
|
||||
pointer-events: initial;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-text-element {
|
||||
color: $color-silver-chalice;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
@editingDisabled="disableEditMode"
|
||||
@editingEnabled="enableEditMode"
|
||||
/>
|
||||
<div v-else-if="element.attributes.orderable.text_view" v-html="element.attributes.orderable.text_view"></div>
|
||||
<div class="view-text-element" v-else-if="element.attributes.orderable.text_view" v-html="element.attributes.orderable.text_view"></div>
|
||||
<div v-else class="empty-text-element">
|
||||
{{ i18n.t("protocols.steps.text.empty_text") }}
|
||||
</div>
|
||||
|
|
|
@ -120,6 +120,7 @@
|
|||
let textArea = `#${this.objectType}_textarea_${this.objectId}`;
|
||||
|
||||
if (this.active) return
|
||||
if (e && $(e.target).prop("tagName") === 'A') return
|
||||
if (e && $(e.target).hasClass('atwho-user-popover')) return
|
||||
if (e && $(e.target).hasClass('record-info-link')) return
|
||||
if (e && $(e.target).parent().hasClass('atwho-inserted')) return
|
||||
|
|
Loading…
Reference in a new issue