mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
@{
|
|
Script.Require("TinyMce");
|
|
}
|
|
@using(Script.Foot()) {
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
tinyMCE.init({
|
|
theme: "advanced",
|
|
mode: "specific_textareas",
|
|
editor_selector: "html",
|
|
plugins: "fullscreen,autoresize,searchreplace,mediapicker",
|
|
theme_advanced_toolbar_location: "top",
|
|
theme_advanced_toolbar_align: "left",
|
|
theme_advanced_buttons1: "search,replace,|,cut,copy,paste,|,undo,redo,|,mediapicker,|,link,unlink,charmap,emoticon,codeblock,|,bold,italic,|,numlist,bullist,formatselect,|,code,fullscreen",
|
|
theme_advanced_buttons2: "",
|
|
theme_advanced_buttons3: "",
|
|
convert_urls: false,
|
|
mediapicker_uploadaction: "@Url.Action("AddFromClient", "Admin", new {area = "Orchard.Media"})",
|
|
mediapicker_uploadpath: "@Model.AddMediaPath",
|
|
mediapicker_title: "@T("Insert/Update Media")",
|
|
extended_valid_elements: "canvas[id|width|height],script[src|type]," +
|
|
"object[classid|codebase|width|height|align|name|id],param[name|value],embed[quality|type|pluginspage|width|height|src|align]," +
|
|
"iframe[src|frameborder|width|height|scrolling|name|id]," +
|
|
"video[src|audio|autoplay|controls|width|height|loop|preload|poster],audio[src|autoplay|loop|controls|preload],source[id|src|type]"
|
|
});
|
|
//]]>
|
|
</script>
|
|
}
|
|
@Html.TextArea("Text", (string)Model.Text, 25, 80, new { @class = "html" })
|