mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-03 21:49:23 +08:00
Merge pull request #2873 from aignatov-bio/ai-sci-5038-small-smart-annotation-fixes
Small smart annotation fixes [SCI-5038]
This commit is contained in:
commit
c53753b294
2 changed files with 6 additions and 2 deletions
|
@ -22,8 +22,12 @@ var ProtocolRepositoryHeader = (function() {
|
||||||
|
|
||||||
function initEditDescription() {
|
function initEditDescription() {
|
||||||
var viewObject = $('#protocol_description_view');
|
var viewObject = $('#protocol_description_view');
|
||||||
viewObject.on('click', function() {
|
viewObject.on('click', function(e) {
|
||||||
|
if ($(e.target).hasClass('record-info-link')) return;
|
||||||
TinyMCE.init('#protocol_description_textarea');
|
TinyMCE.init('#protocol_description_textarea');
|
||||||
|
}).on('click', 'a', function(e) {
|
||||||
|
if ($(this).hasClass('record-info-link')) return;
|
||||||
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
TinyMCE.initIfHasDraft(viewObject);
|
TinyMCE.initIfHasDraft(viewObject);
|
||||||
}
|
}
|
||||||
|
|
|
@ -318,7 +318,7 @@ class Constants
|
||||||
|
|
||||||
WHITELISTED_ATTRIBUTES = [
|
WHITELISTED_ATTRIBUTES = [
|
||||||
'href', 'src', 'width', 'height', 'alt', 'cite', 'datetime', 'title',
|
'href', 'src', 'width', 'height', 'alt', 'cite', 'datetime', 'title',
|
||||||
'class', 'name', 'xml:lang', 'abbr', 'style', 'target', :data, 'border'
|
'class', 'name', 'xml:lang', 'abbr', 'style', 'target', :data, 'border', 'contenteditable'
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
WHITELISTED_CSS_ATTRIBUTES = {
|
WHITELISTED_CSS_ATTRIBUTES = {
|
||||||
|
|
Loading…
Reference in a new issue