From 65fe092e811ab6df1453846372ccb48132dd65d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Godefroy?= Date: Mon, 22 Nov 2021 10:56:38 +0100 Subject: [PATCH 1/2] Renforcement : add text edition button in canvas demo without editor --- demos/canvas.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/demos/canvas.html b/demos/canvas.html index b82d1cdf..85c9d42f 100644 --- a/demos/canvas.html +++ b/demos/canvas.html @@ -16,13 +16,15 @@
[ - ] + + ]
- + + From c2e4aa2ec9d3ac3e396577031a07745195f7ad27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Godefroy?= Date: Mon, 22 Nov 2021 11:52:18 +0100 Subject: [PATCH 2/2] Linting eslint : correct linter warning --- demos/canvas.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/canvas.html b/demos/canvas.html index 85c9d42f..3d149e80 100644 --- a/demos/canvas.html +++ b/demos/canvas.html @@ -55,7 +55,7 @@ window.fill = function (colour) { }); }; -let hiddenTextTag = window.canvas.$id(hiddenTextTagId); +const hiddenTextTag = window.canvas.$id(hiddenTextTagId); window.canvas.textActions.setInputElem(hiddenTextTag); const addListenerMulti = (element, eventNames, listener)=> {