Copied to clipboard

Flag this post as spam?

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


  • Thelmes Fobus 5 posts 75 karma points
    Sep 23, 2018 @ 19:49
    Thelmes Fobus
    0

    How to access current editorState in my plugin

    Hello,

    I'm trying to develop a plugin that works with nuPicker.

    My aim is accessing the current picked items and for-each picked item I want to enter a custom description.

    By using editorState.getCurrent() I can access the tabs and picked items.

    So, I can access editorState as a service in my Angular controller. But when I change the picked items, editorState.getCurrent() still gives me the old state.

    Here is my controller code

    angular.module("umbraco").controller("My.ExtendedFiltersController", function ($scope,$rootScope, editorState) {
       $scope.editorState = editorState;
       // this is a simple function that I want to get the state inside.
       $scope.onChange = function () {
           console.log($scope.editorState.getCurrent());
       }
    })
    

    So, can any body help me please how can I get the selected items in nuPicker, I'm checking umbracotv videos but there is no useful information about my problem.

    Thanks

  • Thelmes Fobus 5 posts 75 karma points
    Sep 25, 2018 @ 08:19
    Thelmes Fobus
    0

    Are you leaving me alone?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies