Refactoring content capture into a InnerWriter substitution. Adding content dictionary to layout context.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044310
This commit is contained in:
loudej
2009-12-19 01:53:47 +00:00
parent d7f048d098
commit 40d4e850cf
12 changed files with 133 additions and 110 deletions

View File

@@ -128,6 +128,12 @@
<Content Include="Views\Shared\EditorTemplates\TinyMceTextEditor.ascx" />
<Content Include="Views\Web.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Orchard\Orchard.csproj">
<Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
<Name>Orchard</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@@ -1,8 +1,10 @@
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<%@ Import Namespace="System.Web.Mvc.Html" %>
<%@ Import Namespace="Orchard.Mvc.Html" %>
<%@ Import Namespace="System.Web.Mvc.Html" %>
<% Html.RegisterScript("tiny_mce.js"); %>
<%=Html.TextArea("", Model, 25, 80, new { @class = "html" }) %>
<%using (this.Capture("end-of-page-scripts")) {%>
<script type="text/javascript">
tinyMCE.init({
theme: "advanced",
@@ -16,3 +18,4 @@
theme_advanced_buttons3: ""
});
</script>
<%}%>