Render text actions panel on double click (#450)

* Render text actions panel on double click

* cleanup wysiwyg on click

* use `state.editingElement` instead of global to determine whether t ext panel is shown

* clarify comment

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
Faustino Kialungila 2020-01-19 23:32:24 +01:00 committed by GitHub
parent 3715da9966
commit 61be0f7b61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 4 deletions

View file

@ -7,6 +7,7 @@ export function getDefaultAppState(): AppState {
return {
draggingElement: null,
resizingElement: null,
editingElement: null,
elementType: "selection",
exportBackground: true,
currentItemStrokeColor: "#000000",