Get media Id in custom property while opening edit window in content node
Hello all,
I have a custom developed property editor for media nodes. That is handling some data from API based for browsed media node. In media section that is working properly but recently problem found while opening it from content node with edit button in media picker. Problem is because I have used $routeParams.id to get media Id. And when opening edit window in content section it make sense that it won't work as the code will give me id of browsed content node. So anyone please suggest me what is the proper way to get media id in AngularJs while editing from content section?
Get media Id in custom property while opening edit window in content node
Hello all,
I have a custom developed property editor for media nodes. That is handling some data from API based for browsed media node. In media section that is working properly but recently problem found while opening it from content node with edit button in media picker. Problem is because I have used
$routeParams.id
to get media Id. And when opening edit window in content section it make sense that it won't work as the code will give me id of browsed content node. So anyone please suggest me what is the proper way to get media id in AngularJs while editing from content section?Thanks
is working on a reply...