Custom 'sir trevor' property editor not persisting model value
Hi
I'm creating a custom property editor for v7 that uses the Sir Trevor wysiwyg (as demoed by Per at the Belle and Uk Festivals).
I'm binding the model to my text area using ng-model="model.value" which works fine on the text area alone, but when I initialise sir trevor in the controller it's not persisting the text. Any tips for resolving/debugging what could be going wrong? It's probably something insanely ovbvious. Thanks in advance :)
Custom 'sir trevor' property editor not persisting model value
Hi
I'm creating a custom property editor for v7 that uses the Sir Trevor wysiwyg (as demoed by Per at the Belle and Uk Festivals).
I'm binding the model to my text area using ng-model="model.value" which works fine on the text area alone, but when I initialise sir trevor in the controller it's not persisting the text. Any tips for resolving/debugging what could be going wrong? It's probably something insanely ovbvious. Thanks in advance :)
Model:
Controller:
Comment author was deleted
Hey
Here is the controller
angular.module("umbraco").controller("Sir.Trevor.Controller", function($scope, assetsService){
});
Comment author was deleted
guess it's the formSubmitting that's important here since sir trevor won't update the model.value automatically
Brilliant thanks, didn't realise I'd need to handle the submit manually.
I also needed to change the view as follows:
<div ng-controller="My.SirTrevorController">
<textarea class="js-st-instance">{{ model.value }}</textarea>
</div>
is working on a reply...