mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-18 17:47:54 +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;
|
||||
}
|
||||
|
||||
/* todo: (heskew) try to get .text on stuff like #PublishLaterDate */
|
||||
select, textarea, input.text, #PublishLaterDate {
|
||||
/* todo: (heskew) try to get .text on stuff like #PublishLaterDate and .text-box */
|
||||
select, textarea, input.text, input.text-box, #PublishLaterDate {
|
||||
margin:3px 4px 4px;
|
||||
padding:2px;
|
||||
border:1px solid #d2d6c6;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -566,7 +566,7 @@ ul.horizontal li a, ul.horizontal li a:visited, ul.horizontal li a:active, ol.ho
|
||||
|
||||
/*TODO - Remove roundCorners class*/
|
||||
#content, #navigation li,
|
||||
table, textarea, .button, input.text, .inputTextLarge,
|
||||
table, textarea, .button, input.text, input.text-box, .inputTextLarge,
|
||||
.inputTextPermalink, .linkButton, .confirmation.message,
|
||||
.warning.message, .critical.message, .roundCorners {
|
||||
-moz-border-radius:4px;
|
||||
|
@@ -5,8 +5,8 @@
|
||||
<% Html.Include("Head"); %>
|
||||
<h2>Create New Blog</h2>
|
||||
<p><a href="<%=Url.Blogs() %>">Manage Blogs</a> > Create Blog</p>
|
||||
<%using (Html.BeginForm()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForModel() %>
|
||||
<%}/*EndForm*/%>
|
||||
<% using (Html.BeginForm()) { %>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForModel() %>
|
||||
<% } %>
|
||||
<% Html.Include("Foot"); %>
|
@@ -4,9 +4,9 @@
|
||||
<%@ Import Namespace="Orchard.Blogs.ViewModels"%>
|
||||
<% Html.Include("Head"); %>
|
||||
<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()) { %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<%= Html.EditorForModel()%>
|
||||
<%=Html.ValidationSummary() %>
|
||||
<%=Html.EditorForModel() %>
|
||||
<% } %>
|
||||
<% Html.Include("Foot"); %>
|
@@ -7,8 +7,7 @@
|
||||
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
||||
</fieldset>
|
||||
<label for="">Description</label>
|
||||
<%-- todo: (heskew) shouldn't be TinyMCE'd --%>
|
||||
<%=Html.TextAreaFor(m => m.Description) %>
|
||||
<%=Html.TextAreaFor(m => m.Description, 5, 60, null)%>
|
||||
<fieldset>
|
||||
</fieldset>
|
||||
<input class="button" type="submit" value="Save" />
|
||||
|
@@ -7,8 +7,7 @@
|
||||
<%=Html.EditorFor(m => m.Slug, "BlogPermalink") %>
|
||||
</fieldset>
|
||||
<label for="">Description</label>
|
||||
<%-- todo: (heskew) shouldn't be TinyMCE'd --%>
|
||||
<%=Html.TextAreaFor(m => m.Description) %>
|
||||
<%=Html.TextAreaFor(m => m.Description, 5, 60, null) %>
|
||||
<fieldset>
|
||||
</fieldset>
|
||||
<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">
|
||||
tinyMCE.init({
|
||||
theme: "advanced",
|
||||
mode: "textareas",
|
||||
mode: "specific_textareas",
|
||||
editor_selector: "html",
|
||||
plugins: "fullscreen,autoresize,searchreplace",
|
||||
theme_advanced_toolbar_location: "top",
|
||||
theme_advanced_toolbar_align: "left",
|
||||
|
@@ -18,7 +18,7 @@
|
||||
<% 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><%
|
||||
} %>
|
||||
<%= Html.TextArea("Revision.Contents[" + content.ZoneName + "].Content", content.Content) %>
|
||||
<%= Html.TextArea("Revision.Contents[" + content.ZoneName + "].Content", content.Content, new { @class = "html" }) %>
|
||||
</fieldset><%
|
||||
} %>
|
||||
<fieldset>
|
||||
|
@@ -19,7 +19,8 @@ todo: (heskew) rework how/what pages are assembled when we get into theming --%>
|
||||
<script type="text/javascript">
|
||||
tinyMCE.init({
|
||||
theme: "advanced",
|
||||
mode: "textareas",
|
||||
mode: "specific_textareas",
|
||||
editor_selector: "html",
|
||||
plugins: "fullscreen,autoresize,searchreplace",
|
||||
theme_advanced_toolbar_location: "top",
|
||||
theme_advanced_toolbar_align: "left",
|
||||
|
Reference in New Issue
Block a user