- 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:
skewed
2009-11-25 22:10:10 +00:00
parent 2e9f4b7613
commit 59504cea49
8 changed files with 18 additions and 18 deletions

View File

@@ -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;

View File

@@ -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"); %>

View File

@@ -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() %>

View File

@@ -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" />

View File

@@ -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" />

View File

@@ -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",

View File

@@ -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>

View File

@@ -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",