Suggestion: Extend markdown editor settings for overlay width (#11006)

This commit is contained in:
Jan Skovgaard
2021-09-01 16:40:49 +02:00
committed by GitHub
parent 95386cd116
commit 4a12ef5e19
4 changed files with 21 additions and 1 deletions

View File

@@ -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();

View File

@@ -0,0 +1,6 @@
angular.module("umbraco").controller("Umbraco.PrevalueEditors.MarkdownEditorController",
function ($scope) {
if (!$scope.model.value) {
$scope.model.value = "small";
}
});

View File

@@ -0,0 +1,9 @@
<div ng-controller="Umbraco.PrevalueEditors.MarkdownEditorController">
<div class="vertical-align-items">
<select ng-model="model.value">
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
</div>
</div>