Browse Source
Merge pull request #8511 from abpframework/enisn/rel-4.3/cms-kit/fix-editor-height
Cms Kit - Fix editor height
pull/8524/head
İlkay İlknur
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with
28 additions and
12 deletions
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/Create.cshtml
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/Update.cshtml
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/create.css
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/create.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/update.css
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/update.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/Create.cshtml
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/Update.cshtml
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/create.css
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/create.js
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/update.css
-
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/Pages/update.js
|
|
|
@ -33,6 +33,7 @@ |
|
|
|
@section styles { |
|
|
|
<abp-style-bundle> |
|
|
|
<abp-style type="typeof(TuiEditorStyleContributor)"/> |
|
|
|
<abp-style src="/Pages/CmsKit/BlogPosts/create.css"/> |
|
|
|
</abp-style-bundle> |
|
|
|
} |
|
|
|
|
|
|
|
@ -61,7 +62,7 @@ |
|
|
|
|
|
|
|
<abp-form-content /> |
|
|
|
|
|
|
|
<div class="content-editor" |
|
|
|
<div class="content-editor cms-kit-editor" |
|
|
|
id="ContentEditor" |
|
|
|
data-input-id="@Html.IdFor(x => x.ViewModel.Content)" |
|
|
|
data-language="@(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName)"> |
|
|
|
|
|
|
|
@ -33,6 +33,7 @@ |
|
|
|
@section styles { |
|
|
|
<abp-style-bundle> |
|
|
|
<abp-style type="typeof(TuiEditorStyleContributor)"/> |
|
|
|
<abp-style src="/Pages/CmsKit/BlogPosts/update.css"/> |
|
|
|
</abp-style-bundle> |
|
|
|
} |
|
|
|
|
|
|
|
@ -59,7 +60,7 @@ |
|
|
|
|
|
|
|
<abp-form-content /> |
|
|
|
|
|
|
|
<div class="content-editor" |
|
|
|
<div class="content-editor cms-kit-editor" |
|
|
|
id="ContentEditor" |
|
|
|
data-input-id="@Html.IdFor(x => x.ViewModel.Content)" |
|
|
|
data-language="@(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName)"> |
|
|
|
|
|
|
|
@ -0,0 +1,3 @@ |
|
|
|
.cms-kit-editor { |
|
|
|
height: 65vh !important; |
|
|
|
} |
|
|
|
@ -231,7 +231,7 @@ |
|
|
|
useCommandShortcut: true, |
|
|
|
initialValue: initialValue, |
|
|
|
previewStyle: 'tab', |
|
|
|
height: "95vh", |
|
|
|
height: "100%", |
|
|
|
minHeight: "25em", |
|
|
|
initialEditType: 'markdown', |
|
|
|
language: $editorContainer.data("language"), |
|
|
|
|
|
|
|
@ -0,0 +1,3 @@ |
|
|
|
.cms-kit-editor { |
|
|
|
height: 65vh !important; |
|
|
|
} |
|
|
|
@ -178,7 +178,7 @@ |
|
|
|
useCommandShortcut: true, |
|
|
|
initialValue: initialValue, |
|
|
|
previewStyle: 'tab', |
|
|
|
height: "95vh", |
|
|
|
height: "100%", |
|
|
|
minHeight: "25em", |
|
|
|
initialEditType: 'markdown', |
|
|
|
language: $editorContainer.data("language"), |
|
|
|
|
|
|
|
@ -29,6 +29,7 @@ |
|
|
|
@section styles { |
|
|
|
<abp-style-bundle> |
|
|
|
<abp-style type="typeof(TuiEditorStyleContributor)" /> |
|
|
|
<abp-style src="/Pages/CmsKit/Pages/create.css"/> |
|
|
|
</abp-style-bundle> |
|
|
|
} |
|
|
|
|
|
|
|
@ -45,7 +46,7 @@ |
|
|
|
<abp-tabs tab-style="Tab"> |
|
|
|
|
|
|
|
<abp-tab title="@L["Content"]"> |
|
|
|
<div class="content-editor" |
|
|
|
<div class="content-editor cms-kit-editor" |
|
|
|
id="ContentEditor" |
|
|
|
data-input-id="@Html.IdFor(x => x.ViewModel.Content)" |
|
|
|
data-language="@(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName)"> |
|
|
|
@ -53,11 +54,11 @@ |
|
|
|
</abp-tab> |
|
|
|
|
|
|
|
<abp-tab title="@L["Script"]"> |
|
|
|
<abp-input asp-for="ViewModel.Script" suppress-label="true" /> |
|
|
|
<abp-input asp-for="ViewModel.Script" suppress-label="true" class="cms-kit-editor" /> |
|
|
|
</abp-tab> |
|
|
|
|
|
|
|
<abp-tab title="@L["Style"]"> |
|
|
|
<abp-input asp-for="ViewModel.Style" suppress-label="true"/> |
|
|
|
<abp-input asp-for="ViewModel.Style" suppress-label="true" class="cms-kit-editor"/> |
|
|
|
</abp-tab> |
|
|
|
|
|
|
|
</abp-tabs> |
|
|
|
|
|
|
|
@ -30,6 +30,7 @@ |
|
|
|
@section styles { |
|
|
|
<abp-style-bundle> |
|
|
|
<abp-style type="typeof(TuiEditorStyleContributor)" /> |
|
|
|
<abp-style src="/Pages/CmsKit/Pages/update.css" /> |
|
|
|
</abp-style-bundle> |
|
|
|
} |
|
|
|
|
|
|
|
@ -49,7 +50,7 @@ |
|
|
|
<abp-tabs tab-style="Tab"> |
|
|
|
|
|
|
|
<abp-tab title="@L["Content"]"> |
|
|
|
<div class="content-editor" |
|
|
|
<div class="content-editor cms-kit-editor" |
|
|
|
id="ContentEditor" |
|
|
|
data-input-id="@Html.IdFor(x => x.ViewModel.Content)" |
|
|
|
data-language="@(CultureInfo.CurrentUICulture.TwoLetterISOLanguageName)"> |
|
|
|
@ -57,11 +58,11 @@ |
|
|
|
</abp-tab> |
|
|
|
|
|
|
|
<abp-tab title="@L["Script"]"> |
|
|
|
<abp-input asp-for="ViewModel.Script" suppress-label="true" /> |
|
|
|
<abp-input asp-for="ViewModel.Script" suppress-label="true" class="cms-kit-editor" /> |
|
|
|
</abp-tab> |
|
|
|
|
|
|
|
<abp-tab title="@L["Style"]"> |
|
|
|
<abp-input asp-for="ViewModel.Style" suppress-label="true"/> |
|
|
|
<abp-input asp-for="ViewModel.Style" suppress-label="true" class="cms-kit-editor"/> |
|
|
|
</abp-tab> |
|
|
|
|
|
|
|
</abp-tabs> |
|
|
|
|
|
|
|
@ -0,0 +1,3 @@ |
|
|
|
.cms-kit-editor { |
|
|
|
height: 65vh !important; |
|
|
|
} |
|
|
|
@ -86,7 +86,7 @@ |
|
|
|
useCommandShortcut: true, |
|
|
|
initialValue: initialValue, |
|
|
|
previewStyle: 'tab', |
|
|
|
height: "95vh", |
|
|
|
height: "100%", |
|
|
|
minHeight: "25em", |
|
|
|
initialEditType: 'markdown', |
|
|
|
language: $editorContainer.data("language"), |
|
|
|
|
|
|
|
@ -0,0 +1,3 @@ |
|
|
|
.cms-kit-editor { |
|
|
|
height: 65vh !important; |
|
|
|
} |
|
|
|
@ -61,7 +61,7 @@ |
|
|
|
useCommandShortcut: true, |
|
|
|
initialValue: initialValue, |
|
|
|
previewStyle: 'tab', |
|
|
|
height: "95vh", |
|
|
|
height: "100%", |
|
|
|
minHeight: "25em", |
|
|
|
initialEditType: 'markdown', |
|
|
|
language: $editorContainer.data("language"), |
|
|
|
|