mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user