diff --git a/src/browser/js/app/editor/edit-field.js b/src/browser/js/app/editor/edit-field.js index 2c208d56..eccb9b5c 100644 --- a/src/browser/js/app/editor/edit-field.js +++ b/src/browser/js/app/editor/edit-field.js @@ -192,7 +192,16 @@ module.exports = function editField(editor, widget, propName, defaultValue){ htmlHelp = htmlHelp ? '
' + htmlHelp.replace(/`([^`]*)`/g, '$1') + '
${error}
` : '' + var htmlError = error ? `${error}
` : '', + computedValue = propName !== 'tabs' && propName !== 'widgets' ? widget.getProp(propName) : ['...'] + + if (typeof computedValue === 'string') { + try { + computedValue = JSON.stringify(JSON.parse(computedValue), null, ' ') + } catch(e) {} + } else { + computedValue = JSON.stringify(computedValue, null, ' ') + } new Popup({closable: true, title: `${propName}`, content: `Type: ${defaultValue.type}
Default: ${JSON.stringify(defaultValue.value)}
Dynamic: ${dynamic ? 'true' : 'false'}
Computed: ${widget.cachedProps[propName]}
Computed: ${computedValue}