Add anchor to result text editing

This commit is contained in:
Jure Grabnar 2019-09-25 18:08:25 +02:00
parent 477e41a96d
commit 8441c5b6ed

View file

@ -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,