mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-14 17:28:42 +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()
|
jsOMS.Modules.Models.Editor.Editor.prototype.getSelectedText = function()
|
||||||
{
|
{
|
||||||
var text = '';
|
let text = '';
|
||||||
var activeEl = document.activeElement;
|
const activeEl = document.activeElement;
|
||||||
var activeElTagName = activeEl ? activeEl.tagName.toLowerCase() : null;
|
const activeElTagName = activeEl ? activeEl.tagName.toLowerCase() : null;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(activeElTagName === 'textarea' || activeElTagName === 'input') &&
|
(activeElTagName === 'textarea' || activeElTagName === 'input') &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user