diff --git a/static/js/app/app.js b/static/js/app/app.js index 9915d45e..cd960864 100644 --- a/static/js/app/app.js +++ b/static/js/app/app.js @@ -1,4 +1,4 @@ -var app = angular.module('gophish', ['ngRoute', 'ngTable', 'ngResource', 'ui.bootstrap', 'highcharts-ng', 'angularFileUpload']); +var app = angular.module('gophish', ['ngRoute', 'ngTable', 'ngResource', 'ui.bootstrap', 'highcharts-ng', 'angularFileUpload', 'ngCkeditor']); app.config(function($routeProvider) { $routeProvider @@ -43,7 +43,7 @@ app.config(function($routeProvider) { app.config( [ '$compileProvider', function( $compileProvider ) - { + { $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|data):/); // Angular before v1.2 uses $compileProvider.urlSanitizationWhitelist(...) } diff --git a/static/js/app/controllers.js b/static/js/app/controllers.js index 1e05040a..d49e35ae 100644 --- a/static/js/app/controllers.js +++ b/static/js/app/controllers.js @@ -654,6 +654,10 @@ app.controller('TemplateCtrl', function($scope, $modal, TemplateService, ngTable }) var TemplateModalCtrl = function($scope, $upload, $modalInstance) { + $scope.editorOptions = { + fullPage: true, + allowedContent: true + } $scope.onFileSelect = function($files) { console.log($files) angular.forEach($files, function(file, key) { @@ -778,6 +782,11 @@ app.controller('LandingPageCtrl', function($scope, $modal, LandingPageService, n }); var LandingPageModalCtrl = function($scope, $modalInstance) { + $scope.editorOptions = { + fullPage: true, + allowedContent: true, + startupMode: "source" + } $scope.cancel = function() { $modalInstance.dismiss('cancel'); }; diff --git a/static/js/app/partials/landing_pages.html b/static/js/app/partials/landing_pages.html index 8d78e8c1..f8a77e6d 100644 --- a/static/js/app/partials/landing_pages.html +++ b/static/js/app/partials/landing_pages.html @@ -44,7 +44,7 @@