Skip to content

Commit

Permalink
Added sample for initOnClick: true to the demo
Browse files Browse the repository at this point in the history
In order to get a good reproduction case for froala#223
  • Loading branch information
robinwassen committed Dec 3, 2019
1 parent 0143573 commit f37efed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions demo/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
$scope.sample2Text = '';
$scope.sample3Text = 'Check out the <a href="https://www.froala.com/wysiwyg-editor">Froala Editor</a>';


$scope.imgModel = {src: 'image.jpg'};

$scope.buttonModel = {innerHTML: 'Click Me'};
Expand All @@ -42,6 +43,12 @@
angularIgnoreAttrs: ['class', 'ng-model', 'id', 'froala']
}

$scope.sample8Text = '<p><b>Hello</b>, world!</p>';
$scope.sample8Options = {
initOnClick: true,
placeholderText: "",
}

$scope.initializeLink = function(linkInitControls) {
$scope.linkInitControls = linkInitControls;
};
Expand Down
5 changes: 5 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ <h4>Model Obj:</h4>
<div>{{linkModel}}</div>
</div>

<div class="sample">
<h2>Sample 8: Init on click</h2>
<textarea id="froala-sample-2" froala="sample8Options" ng-model="sample8Text"></textarea>
</div>

</body>

</html>

0 comments on commit f37efed

Please sign in to comment.