Removes hard coded api url from rte embed
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
angular.module("umbraco").controller("Umbraco.Dialogs.RteEmbedController", function ($scope, $http) {
|
||||
angular.module("umbraco").controller("Umbraco.Dialogs.RteEmbedController", function ($scope, $http, umbRequestHelper) {
|
||||
$scope.form = {};
|
||||
$scope.form.url = "";
|
||||
$scope.form.width = 360;
|
||||
@@ -20,7 +20,7 @@
|
||||
$scope.form.info = "";
|
||||
$scope.form.success = false;
|
||||
|
||||
$http({ method: 'GET', url: '/umbraco/UmbracoApi/RteEmbed/GetEmbed', params: { url: $scope.form.url, width: $scope.form.width, height: $scope.form.height } })
|
||||
$http({ method: 'GET', url: umbRequestHelper.getApiUrl("embedApiBaseUrl", "GetEmbed"), params: { url: $scope.form.url, width: $scope.form.width, height: $scope.form.height } })
|
||||
.success(function (data) {
|
||||
|
||||
$scope.form.preview = "";
|
||||
|
||||
Reference in New Issue
Block a user