fix i18 issue
parent
04dab1edcf
commit
bebc71358c
|
@ -557,7 +557,7 @@ class TopPanel {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
e.target.value = this.selectedElement.getAttribute(attr);
|
e.target.value = this.selectedElement.getAttribute(attr);
|
||||||
// eslint-disable-next-line no-alert
|
// eslint-disable-next-line no-alert
|
||||||
alert(this.i18next.t('notification.invalidAttrValGiven'));
|
alert(this.editor.i18next.t('notification.invalidAttrValGiven'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -618,7 +618,7 @@ class TopPanel {
|
||||||
if (!isNullish(this.editor.selectedElement) || this.multiselected) {
|
if (!isNullish(this.editor.selectedElement) || this.multiselected) {
|
||||||
// eslint-disable-next-line no-alert
|
// eslint-disable-next-line no-alert
|
||||||
const url = prompt(
|
const url = prompt(
|
||||||
this.i18next.t('notification.enterNewLinkURL'),
|
this.editor.i18next.t('notification.enterNewLinkURL'),
|
||||||
"http://"
|
"http://"
|
||||||
);
|
);
|
||||||
if (url) {
|
if (url) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ import Layer from './layer.js';
|
||||||
import HistoryRecordingService from './historyrecording.js';
|
import HistoryRecordingService from './historyrecording.js';
|
||||||
|
|
||||||
import { NS } from '../common/namespaces.js';
|
import { NS } from '../common/namespaces.js';
|
||||||
import { isOpera } from '../common/browser.js';
|
|
||||||
import {
|
import {
|
||||||
toXml, getElem
|
toXml, getElem
|
||||||
} from './utilities.js';
|
} from './utilities.js';
|
||||||
|
|
Loading…
Reference in New Issue