X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fckeditor%2Fjs%2Fckeditor.js;h=cc12d7389e71b6ddfd9aba24500a1fa1199c000c;hb=f3baf763d342a5f82576890e2a8111a5aaf139dc;hp=becf7a19e791706fff19cb05e6d2fa5eb100ba88;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/modules/ckeditor/js/ckeditor.js b/web/core/modules/ckeditor/js/ckeditor.js index becf7a19e..cc12d7389 100644 --- a/web/core/modules/ckeditor/js/ckeditor.js +++ b/web/core/modules/ckeditor/js/ckeditor.js @@ -15,7 +15,9 @@ }; var label = $('label[for=' + element.getAttribute('id') + ']').html(); - format.editorSettings.title = Drupal.t('Rich Text Editor, !label field', { '!label': label }); + format.editorSettings.title = Drupal.t('Rich Text Editor, !label field', { + '!label': label + }); return !!CKEDITOR.replace(element, format.editorSettings); }, @@ -177,13 +179,13 @@ }); function redirectTextareaFragmentToCKEditorInstance() { - var hash = location.hash.substr(1); + var hash = window.location.hash.substr(1); var element = document.getElementById(hash); if (element) { var editor = CKEDITOR.dom.element.get(element).getEditor(); if (editor) { var id = editor.container.getAttribute('id'); - location.replace('#' + id); + window.location.replace('#' + id); } } }