From df25ec95ea608c26e3bd851e6c9c79a4f77a1374 Mon Sep 17 00:00:00 2001 From: NWalker4483 Date: Thu, 3 Jun 2021 03:08:11 -0400 Subject: [PATCH] Added Code window grabber --- lib/Editor.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/Editor.js b/lib/Editor.js index 927fca8..213e780 100644 --- a/lib/Editor.js +++ b/lib/Editor.js @@ -33,6 +33,7 @@ export default function Editor( this._state = { isOpen: undefined, + isEnabled: undefined, }; this._init(); @@ -50,15 +51,19 @@ export default function Editor( if (context.newSelection[0] && self._parent){ if (context.newSelection[0].type == "bpmn:ScriptTask"){ domClasses(self._parent).add('enabled'); - document.getElementById("cam-script-val"); - } else { - domClasses(self._parent).remove('enabled'); - if (self.isOpen()){ - self.close(); - } - } + self._state.isEnabled = true; + // grab script properties window + self._codestore = document.getElementById("cam-script-val"); + console.log(self._codestore); + return; + }} + domClasses(self._parent).remove('enabled'); + self._state.isEnabled = false; + if (self.isOpen()){ + self.close(); } }); + } Editor.$inject = [