mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-27 16:58:40 +00:00
Fix js var declaration
This commit is contained in:
parent
b84ebaca6c
commit
2dad14d06a
|
|
@ -28,9 +28,9 @@
|
|||
|
||||
jsOMS.Modules.Models.Editor.Editor.prototype.getSelectedText = function()
|
||||
{
|
||||
var text = '';
|
||||
var activeEl = document.activeElement;
|
||||
var activeElTagName = activeEl ? activeEl.tagName.toLowerCase() : null;
|
||||
let text = '';
|
||||
const activeEl = document.activeElement;
|
||||
const activeElTagName = activeEl ? activeEl.tagName.toLowerCase() : null;
|
||||
|
||||
if (
|
||||
(activeElTagName === 'textarea' || activeElTagName === 'input') &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user