Commit ed34cf65cd3b726c5f24ea74192f56ef7f1621eb
1 parent
0e6cfa00
Exists in
master
and in
27 other branches
Support ckeditor in article edition
Showing
3 changed files
with
5 additions
and
3 deletions
Show diff stats
bower.json
... | ... | @@ -34,7 +34,9 @@ |
34 | 34 | "angular-dynamic-locale": "^0.1.30", |
35 | 35 | "angular-i18n": "^1.5.0", |
36 | 36 | "angular-load": "^0.4.1", |
37 | - "angular-translate-interpolation-messageformat": "^2.10.0" | |
37 | + "angular-translate-interpolation-messageformat": "^2.10.0", | |
38 | + "ng-ckeditor": "^0.2.1", | |
39 | + "ckeditor": "^4.5.8" | |
38 | 40 | }, |
39 | 41 | "devDependencies": { |
40 | 42 | "angular-mocks": "~1.5.0" | ... | ... |
src/app/article/basic-editor.html
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | </div> |
6 | 6 | <div class="form-group"> |
7 | 7 | <label for="bodyInput">Text</label> |
8 | - <textarea class="form-control" id="bodyInput" rows="10" ng-model="vm.article.body"></textarea> | |
8 | + <textarea ckeditor="vm.editorOptions" class="form-control" id="bodyInput" rows="10" ng-model="vm.article.body"></textarea> | |
9 | 9 | </div> |
10 | 10 | <button type="submit" class="btn btn-default" ng-click="vm.save()">Save</button> |
11 | 11 | </form> | ... | ... |
src/app/index.ts
... | ... | @@ -14,7 +14,7 @@ declare var moment: any; |
14 | 14 | |
15 | 15 | let noosferoApp: any = bundle("noosferoApp", MainComponent, ["ngAnimate", "ngCookies", "ngStorage", "ngTouch", |
16 | 16 | "ngSanitize", "ngMessages", "ngAria", "restangular", |
17 | - "ui.router", "ui.bootstrap", "toastr", | |
17 | + "ui.router", "ui.bootstrap", "toastr", "ngCkeditor", | |
18 | 18 | "angularMoment", "angular.filter", "akoenig.deckgrid", |
19 | 19 | "angular-timeline", "duScroll", "oitozero.ngSweetAlert", |
20 | 20 | "pascalprecht.translate", "tmh.dynamicLocale", "angularLoad"]).publish(); | ... | ... |