Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike B 14 posts 57 karma points
    Nov 26, 2015 @ 16:51
    Mike B
    0

    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

      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

    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.

  • Mike B 14 posts 57 karma points
    Nov 29, 2015 @ 17:57
    Mike B
    0

    Turns out these values are in editorState.current

    so it is editorState.current.tabs[TABINDEX].properties[PROPERTYINDEX].value

Please Sign in or register to post replies

Write your reply to:

Draft