This repository was archived by the owner on Sep 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 17
17
],
18
18
"dependencies" : {
19
19
"angular" : " ~1.x" ,
20
- "tinymce-release " : " latest "
20
+ "tinymce" : " git://github.com/jozzhart/tinymce.git#4.0.0 "
21
21
},
22
22
"devDependencies" : {
23
23
"angular-mocks" : " ~1.x"
Original file line number Diff line number Diff line change 7
7
< meta charset ="utf-8 ">
8
8
< meta http-equiv ="X-UA-Compatible " content ="IE=edge,chrome=1 ">
9
9
< title > AngularUI - TinyMCE Demo</ title >
10
- < base href =".. "> </ base >
11
- < script type ="text/javascript " src ="components/tinymce-release/tiny_mce.js "> </ script >
12
- < script type ="text/javascript " src ="components/angular/angular.js "> </ script >
13
- < script type ="text/javascript " src ="src/tinymce.js "> </ script >
10
+ < script type ="text/javascript " src ="../components/tinymce/tinymce.min.js "> </ script >
11
+ < script type ="text/javascript " src ="../components/angular/angular.js "> </ script >
12
+ < script type ="text/javascript " src ="../src/tinymce.js "> </ script >
14
13
</ head >
15
14
< body ng-app ="ui.tinymce ">
16
15
< form method ="post ">
Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ angular.module('ui.tinymce', [])
38
38
} ,
39
39
// Update model when calling setContent (such as from the source editor popup)
40
40
setup : function ( ed ) {
41
- ed . onInit . add ( function ( ed ) {
41
+ ed . on ( 'init' , function ( args ) {
42
42
ngModel . $render ( ) ;
43
43
} ) ;
44
- ed . onSetContent . add ( function ( ed , o ) {
44
+ ed . on ( 'change' , function ( e ) {
45
45
if ( ed . isDirty ( ) ) {
46
46
ed . save ( ) ;
47
47
ngModel . $setViewValue ( elm . val ( ) ) ;
@@ -63,7 +63,7 @@ angular.module('ui.tinymce', [])
63
63
setTimeout ( function ( ) {
64
64
tinymce . init ( options ) ;
65
65
} ) ;
66
-
66
+
67
67
68
68
ngModel . $render = function ( ) {
69
69
if ( ! tinyInstance ) {
You can’t perform that action at this time.
0 commit comments