Update to rte embed stuff following Shannons comments

This commit is contained in:
Tim Geyssens
2013-09-16 10:05:33 +02:00
parent b6d00cca63
commit ecbaa94ab5
4 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
angular.module("umbraco").controller("Umbraco.Dialogs.EmbedController", function ($scope, $http) {
angular.module("umbraco").controller("Umbraco.Dialogs.RteEmbedController", function ($scope, $http) {
$scope.url = "";
$scope.width = 500;
$scope.height = 300;
@@ -14,7 +14,7 @@
$scope.success = false;
$http({ method: 'POST', url: '/umbraco/UmbracoApi/Embed/Embed', params: { url: $scope.url, width: $scope.width, height: $scope.height } })
$http({ method: 'POST', url: '/umbraco/UmbracoApi/RteEmbed/Embed', params: { url: $scope.url, width: $scope.width, height: $scope.height } })
.success(function(data) {
$scope.preview = data.Markup;
$scope.success = true;

View File

@@ -1,4 +1,4 @@
<div class="umb-panel" ng-controller="Umbraco.Dialogs.EmbedController">
<div class="umb-panel" ng-controller="Umbraco.Dialogs.RteEmbedController">
<div class="umb-panel-header">