mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Add anchor to result text editing
This commit is contained in:
parent
477e41a96d
commit
8441c5b6ed
1 changed files with 2 additions and 2 deletions
4
app/assets/javascripts/sitewide/tiny_mce.js
vendored
4
app/assets/javascripts/sitewide/tiny_mce.js
vendored
|
@ -89,11 +89,11 @@ var TinyMCE = (function() {
|
|||
.before('<div class="tinymce-placeholder" style="height:' + tinyMceInitSize + 'px"></div>');
|
||||
tinyMceContainer.addClass('hidden');
|
||||
|
||||
if (textAreaObject.data('objectType') === 'step') {
|
||||
if (textAreaObject.data('objectType') === 'step'
|
||||
|| textAreaObject.data('objectType') === 'result_text') {
|
||||
document.location.hash = textAreaObject.data('objectType') + '_' + textAreaObject.data('objectId');
|
||||
}
|
||||
|
||||
|
||||
tinyMCE.init({
|
||||
cache_suffix: '?v=4.9.3', // This suffix should be changed any time library is updated
|
||||
selector: selector,
|
||||
|
|
Loading…
Reference in a new issue