mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 01:57:55 +08:00
- TinyMCE only hooked up to textareas w/ a class of "html"
- Some refinement of the blog create/edit pages --HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042239
This commit is contained in:
@@ -309,14 +309,14 @@ label span {
|
|||||||
font-weight:normal;
|
font-weight:normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* todo: (heskew) try to get .text on stuff like #PublishLaterDate */
|
/* todo: (heskew) try to get .text on stuff like #PublishLaterDate and .text-box */
|
||||||
select, textarea, input.text, #PublishLaterDate {
|
select, textarea, input.text, input.text-box, #PublishLaterDate {
|
||||||
margin:3px 4px 4px;
|
margin:3px 4px 4px;
|
||||||
padding:2px;
|
padding:2px;
|
||||||
border:1px solid #d2d6c6;
|
border:1px solid #d2d6c6;
|
||||||
color:#5a5b32;
|
color:#5a5b32;
|
||||||
}
|
}
|
||||||
select:focus, textarea:focus, input.text:focus, #PublishLaterDate:focus {
|
select:focus, textarea:focus, input.text:focus, input.text-box:focus, #PublishLaterDate:focus {
|
||||||
border-color:#666d51;
|
border-color:#666d51;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -566,7 +566,7 @@ ul.horizontal li a, ul.horizontal li a:visited, ul.horizontal li a:active, ol.ho
|
|||||||
|
|
||||||
/*TODO - Remove roundCorners class*/
|
/*TODO - Remove roundCorners class*/
|
||||||
#content, #navigation li,
|
#content, #navigation li,
|
||||||
table, textarea, .button, input.text, .inputTextLarge,
|
table, textarea, .button, input.text, input.text-box, .inputTextLarge,
|
||||||
.inputTextPermalink, .linkButton, .confirmation.message,
|
.inputTextPermalink, .linkButton, .confirmation.message,
|
||||||
.warning.message, .critical.message, .roundCorners {
|
.warning.message, .critical.message, .roundCorners {
|
||||||
-moz-border-radius:4px;
|
-moz-border-radius:4px;
|
||||||
|
@@ -8,5 +8,5 @@
|
|||||||
<% using (Html.BeginForm()) { %>
|
<% using (Html.BeginForm()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorForModel() %>
|
<%=Html.EditorForModel() %>
|
||||||
<%}/*EndForm*/%>
|
<% } %>
|
||||||
<% Html.Include("Foot"); %>
|
<% Html.Include("Foot"); %>
|
@@ -4,7 +4,7 @@
|
|||||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||||
<% Html.Include("Head"); %>
|
<% Html.Include("Head"); %>
|
||||||
<h2>Edit Blog</h2>
|
<h2>Edit Blog</h2>
|
||||||
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > Editing <strong><%=Html.Encode(Model.Name)%></strong> (#<%= Model.Id%>)</p>
|
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > Editing <strong><%=Html.Encode(Model.Name)%></strong></p>
|
||||||
<% using (Html.BeginForm()) { %>
|
<% using (Html.BeginForm()) { %>
|
||||||
<%=Html.ValidationSummary() %>
|
<%=Html.ValidationSummary() %>
|
||||||
<%=Html.EditorForModel() %>
|
<%=Html.EditorForModel() %>
|
||||||
|
@@ -7,8 +7,7 @@
|
|||||||
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<label for="">Description</label>
|
<label for="">Description</label>
|
||||||
<%-- todo: (heskew) shouldn't be TinyMCE'd --%>
|
<%=Html.TextAreaFor(m => m.Description, 5, 60, null)%>
|
||||||
<%=Html.TextAreaFor(m => m.Description) %>
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<input class="button" type="submit" value="Save" />
|
<input class="button" type="submit" value="Save" />
|
||||||
|
@@ -7,8 +7,7 @@
|
|||||||
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<label for="">Description</label>
|
<label for="">Description</label>
|
||||||
<%-- todo: (heskew) shouldn't be TinyMCE'd --%>
|
<%=Html.TextAreaFor(m => m.Description, 5, 60, null) %>
|
||||||
<%=Html.TextAreaFor(m => m.Description) %>
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<input class="button" type="submit" value="Create" />
|
<input class="button" type="submit" value="Create" />
|
||||||
|
@@ -19,7 +19,8 @@ todo: (heskew) rework how/what pages are assembled when we get into theming --%>
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme: "advanced",
|
theme: "advanced",
|
||||||
mode: "textareas",
|
mode: "specific_textareas",
|
||||||
|
editor_selector: "html",
|
||||||
plugins: "fullscreen,autoresize,searchreplace",
|
plugins: "fullscreen,autoresize,searchreplace",
|
||||||
theme_advanced_toolbar_location: "top",
|
theme_advanced_toolbar_location: "top",
|
||||||
theme_advanced_toolbar_align: "left",
|
theme_advanced_toolbar_align: "left",
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
<% if (Model.Template != null && Model.Template.Zones.Contains(content.ZoneName) == false) {
|
<% if (Model.Template != null && Model.Template.Zones.Contains(content.ZoneName) == false) {
|
||||||
%><span class="warning message">These contents are assigned to a zone that does not exist in the current template. Please delete it or copy it to another zone.</span><%
|
%><span class="warning message">These contents are assigned to a zone that does not exist in the current template. Please delete it or copy it to another zone.</span><%
|
||||||
} %>
|
} %>
|
||||||
<%= Html.TextArea("Revision.Contents[" + content.ZoneName + "].Content", content.Content) %>
|
<%= Html.TextArea("Revision.Contents[" + content.ZoneName + "].Content", content.Content, new { @class = "html" }) %>
|
||||||
</fieldset><%
|
</fieldset><%
|
||||||
} %>
|
} %>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@@ -19,7 +19,8 @@ todo: (heskew) rework how/what pages are assembled when we get into theming --%>
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
tinyMCE.init({
|
tinyMCE.init({
|
||||||
theme: "advanced",
|
theme: "advanced",
|
||||||
mode: "textareas",
|
mode: "specific_textareas",
|
||||||
|
editor_selector: "html",
|
||||||
plugins: "fullscreen,autoresize,searchreplace",
|
plugins: "fullscreen,autoresize,searchreplace",
|
||||||
theme_advanced_toolbar_location: "top",
|
theme_advanced_toolbar_location: "top",
|
||||||
theme_advanced_toolbar_align: "left",
|
theme_advanced_toolbar_align: "left",
|
||||||
|
Reference in New Issue
Block a user