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
Hi,
I am creating my first property editor plugin in Umbraco 7.4.3.
For now I have 2 textarea tags in my editor that are referenced by:
model.value.text1
and
model.value.text2
Now I want to show a preview in the property editor which includes these 2 values but I also need the url of the current page I am working on.
<div class="preview-container"> <span class="preview-title" ng-bind-html-unsafe="model.value.text1"></span><br /> <span class="preview-url" ng-bind-html-unsafe="model.value.url"></span><br /> <span class="preview-description" ng-bind-html-unsafe="model.value.text2"></span> </div>
So I need to store the current page url in model.value.url
model.value.url
/Michaël
For others that need to access the current page properties, you can use the editorState service which contains a lot of usefull information!
editorState
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get standard properties of current page in angular in custom property editor
Hi,
I am creating my first property editor plugin in Umbraco 7.4.3.
For now I have 2 textarea tags in my editor that are referenced by:
and
Now I want to show a preview in the property editor which includes these 2 values but I also need the url of the current page I am working on.
So I need to store the current page url in
model.value.url
/Michaël
For others that need to access the current page properties, you can use the
editorState
service which contains a lot of usefull information!/Michaël
is working on a reply...