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