diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js index a5ccf7a9aa..d398c943c4 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js @@ -30,6 +30,7 @@ function MarkdownEditorController($scope, $element, assetsService, editorService function openLinkPicker(callback) { var linkPicker = { hideTarget: true, + size: $scope.model.config.overlayWidthSize, submit: function(model) { callback(model.target.url, model.target.name); editorService.close(); diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.prevalues.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.prevalues.controller.js new file mode 100644 index 0000000000..29a3b876ea --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.prevalues.controller.js @@ -0,0 +1,6 @@ +angular.module("umbraco").controller("Umbraco.PrevalueEditors.MarkdownEditorController", + function ($scope) { + if (!$scope.model.value) { + $scope.model.value = "small"; + } + }); diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.prevalues.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.prevalues.html new file mode 100644 index 0000000000..8564a9f490 --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.prevalues.html @@ -0,0 +1,9 @@ +