};
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);
},
});
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);
}
}
}