Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I am trying to update other properties from within a custom property editor.
I can access all the properties on load time with
contentResource.getById(editorState.current.id).then (editingNode) editingNode.tabs[TABINDEX].properties[PROPERTYINDEX].value
But it's not enough. I want to be able to listen to property changes after page load and update other properties. Any hints?
I managed to get the form via angular.element('form[name=contentForm]').scope().contentForm
angular.element('form[name=contentForm]').scope().contentForm
but kinda hit a dead end as it doesn't list the members. Also input boxes etc don't have unique identifiers so I can't access them via DOM either.
Turns out these values are in editorState.current
editorState.current
so it is editorState.current.tabs[TABINDEX].properties[PROPERTYINDEX].value
editorState.current.tabs[TABINDEX].properties[PROPERTYINDEX].value
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Access and update all OTHER live properties from custom property editor?
Hello,
I am trying to update other properties from within a custom property editor.
I can access all the properties on load time with
But it's not enough. I want to be able to listen to property changes after page load and update other properties. Any hints?
I managed to get the form via
angular.element('form[name=contentForm]').scope().contentForm
but kinda hit a dead end as it doesn't list the members. Also input boxes etc don't have unique identifiers so I can't access them via DOM either.
Turns out these values are in
editorState.current
so it is
editorState.current.tabs[TABINDEX].properties[PROPERTYINDEX].value
is working on a reply...