Updating the Common Body's editor to be more resilient to the TinyMCE module being disabled and allowing for any other editor to be used for any body part via the body flavor setting

- using a shape now for the template "Body_Editor" with an alternate added for the body flavor "Body_Editor__" + flavor (e.g. Body_Editor__html -> Body-Html.Editor in a case insensitive world)
- html by default
- tinymce provides an html editor template
- template falls back to a textarea template

work item: 16753

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-18 14:44:42 -08:00
parent b67664f55b
commit 64c093c107
9 changed files with 17 additions and 14 deletions

View File

@@ -130,7 +130,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\EditorTemplates\TinyMceTextEditor.cshtml" />
<Content Include="Views\Body-Html.Editor.cshtml" />
<Content Include="Views\Web.config" />
</ItemGroup>
<ItemGroup>

View File

@@ -1,5 +1,4 @@
@model Orchard.Core.Common.ViewModels.BodyEditorViewModel
@{
@{
Script.Require("TinyMce");
}
@using(Script.Foot()) {
@@ -23,4 +22,4 @@
//]]>
</script>
}
@Html.TextArea("Text", Model.Text, 25, 80, new { @class = "html" })
@Html.TextArea("Text", (string)Model.Text, 25, 80, new { @class = "html" })