From f37efed89dd232d247e01a8c20be35e21e5666e3 Mon Sep 17 00:00:00 2001 From: Robin Andersson Date: Tue, 3 Dec 2019 11:42:04 +0100 Subject: [PATCH] Added sample for initOnClick: true to the demo In order to get a good reproduction case for #223 --- demo/app.js | 7 +++++++ demo/index.html | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/demo/app.js b/demo/app.js index e637f36..45f1dbf 100644 --- a/demo/app.js +++ b/demo/app.js @@ -33,6 +33,7 @@ $scope.sample2Text = ''; $scope.sample3Text = 'Check out the Froala Editor'; + $scope.imgModel = {src: 'image.jpg'}; $scope.buttonModel = {innerHTML: 'Click Me'}; @@ -42,6 +43,12 @@ angularIgnoreAttrs: ['class', 'ng-model', 'id', 'froala'] } + $scope.sample8Text = '

Hello, world!

'; + $scope.sample8Options = { + initOnClick: true, + placeholderText: "", + } + $scope.initializeLink = function(linkInitControls) { $scope.linkInitControls = linkInitControls; }; diff --git a/demo/index.html b/demo/index.html index c31f541..506a2e0 100644 --- a/demo/index.html +++ b/demo/index.html @@ -119,6 +119,11 @@

Model Obj:

{{linkModel}}
+
+

Sample 8: Init on click

+ +
+