mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Improving default editor theme
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
.CodeMirror {
|
||||
/* Set height, width, borders, and global font properties here */
|
||||
font-family: monospace;
|
||||
line-height: 1.40em;
|
||||
font-family: Monaco, Menlo, "Andale Mono","lucida console","Courier New",monospace !important;
|
||||
height: 300px;
|
||||
}
|
||||
.CodeMirror-scroll {
|
||||
|
@@ -1,7 +1,6 @@
|
||||
@model Orchard.Templates.ViewModels.ShapePartViewModel
|
||||
@{
|
||||
Style.Include("~/modules/orchard.templates/scripts/codemirror/lib/codemirror.css");
|
||||
Style.Include("~/modules/orchard.templates/scripts/codemirror/theme/codemirror.css");
|
||||
Style.Include("template-editor.css");
|
||||
Script.Require("jQuery");
|
||||
Script.Include("codemirror/lib/codemirror.js");
|
||||
@@ -18,14 +17,16 @@
|
||||
@Html.TextBoxFor(m => m.Name, new { @class = "text medium" })
|
||||
<span class="hint">@T("The name of this template, which can be used to reference from code (as when using shape type names) and tokens.")</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.Template, T("Template Body"))
|
||||
@Html.TextAreaFor(m => m.Template, new { @class = "text large code-editor" })
|
||||
<span class="hint">@T("The template.")</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<div>
|
||||
@Html.LabelFor(m => m.Language, T("Language"))
|
||||
@Html.EditorFor(m => m.Language, new { Model.AvailableLanguages })
|
||||
<span class="hint">@T("The template language to use.")</span>
|
||||
<span class="hint">@T("The templating language to use.")</span>
|
||||
</div>
|
||||
</fieldset>
|
Reference in New Issue
Block a user