forked from psergus/ngWYSIWYG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
27 lines (25 loc) · 1019 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Angular WYSIWYG Demo</title>
<link rel="stylesheet" href="css/editor.css">
</head>
<body ng-controller="demoController" ng-cloak>
<wysiwyg-edit content="content"></wysiwyg-edit>
<!-- load assets -->
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.17/angular-sanitize.min.js"></script>
<script src="js/wysiwyg.js"></script>
<script>
angular.module('myApp', ['ngWYSIWYG']).
controller('demoController', ['$scope', '$log', function($scope, $log) {
$scope.content = '<p><strong>Hello World!</strong></p><img src="http://www.ng-newsletter.com/img/ng-newsletter-shield-logo.png">';
$scope.$watch('content', function(newValue) {
$log.info(newValue);
});
}]);
</script>
</body>
</html>