diff --git a/src/client/app/editor/edit-field.js b/src/client/app/editor/edit-field.js
index 61e4fe2e..bf9f0f7c 100644
--- a/src/client/app/editor/edit-field.js
+++ b/src/client/app/editor/edit-field.js
@@ -91,7 +91,7 @@ module.exports = function editField(editor, widget, propName, defaultValue){
}
var lock,
selectedWidgets = [...editor.selectedWidgets]
-
+
var onChange = ()=>{
if (lock) return
@@ -207,6 +207,9 @@ module.exports = function editField(editor, widget, propName, defaultValue){
var htmlHelp = Array.isArray(defaultValue.help) ? defaultValue.help.join('
').replace(/
-/g, '-') : defaultValue.help
htmlHelp = htmlHelp ? html`
${raw(htmlHelp.replace(/`([^`]*)`/g, '$1'))}
${error}
` : '', computedValue = propName !== 'tabs' && propName !== 'widgets' ? widget.getProp(propName) : ['...'] diff --git a/src/client/app/widgets/common/widget.js b/src/client/app/widgets/common/widget.js index 860a970d..7887a9fd 100644 --- a/src/client/app/widgets/common/widget.js +++ b/src/client/app/widgets/common/widget.js @@ -65,7 +65,7 @@ class Widget extends EventEmitter { 'Insert icons using the prefix ^ followed by the icon\'s name : ^play, ^pause, etc' ]}, color: {type: 'string', value: 'auto', help: 'Defines the widget\'s accent color (css variable `--custom-color`). Must be a valid CSS color. Set to "auto" to inherit from parent widget.'}, - css: {type: 'string', value: '', help: 'CSS rules. See documentation.'}, + css: {type: 'string', value: '', help: 'CSS rules. See documentation.'}, _value: 'value', diff --git a/src/client/app/widgets/inputs/keys.js b/src/client/app/widgets/inputs/keys.js index 129d58d3..8c61a7d5 100644 --- a/src/client/app/widgets/inputs/keys.js +++ b/src/client/app/widgets/inputs/keys.js @@ -16,7 +16,7 @@ class Keys extends Widget { keydown: {type: 'string', value: '', help: [ 'This property is evaluated each time the key combo is pressed and defines the widget\'s own value. Formulas are given extras variables in this context:', '- `key`: pressed key name (usefull for handling multiple keys with a single keys widget, lowercased when referencing a character key)', - '- `code`: pressed key code name (full list)', + '- `code`: pressed key code name (full list)', '- `ctrl`: control key state', '- `alt`: alt key state', '- `shift`: shift key state',