我正在嘗試將文件管理器Responsive File Manager集成到TinyMCE中。我遵循了它爲TinyMCE列出的安裝步驟,但是當我嘗試插入文件時,我得到一個空白屏幕。無法與TinyMCE集成文件響應管理器4
不太確定我要去哪裏,所以任何幫助將不勝感激。我的代碼如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Title</title>
<script type="text/javascript" src="tinymce_4.0.16/tinymce/js/tinymce/tinymce.min.js"> </script>
<!--TinyMCE 4 -->
<script>
tinymce.init({
selector: "textarea#elm1",
theme: "modern",
width: 1000,
height: 1000,
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
"save table contextmenu directionality emoticons template paste textcolor responsivefilemanager"
],
content_css: "css/content.css",
toolbar: "insertfile undo redo | styleselect | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | ink image | print preview media fullpage | forecolor backcolor emoticons | responsivefilemanager | link unlink anchor | image media | print preview code ",
image_advtab: true,
relative_urls: false,
external_filemanager_path: "file:///C:/Users/User/Documents/Visual%20Studio%202012/Projects/TinyMCE/ResponsiveFilemanagerMaster/filemanager/",
filemanager_title: "Responsive File Manager",
external_plugin: { "filemanager": "file:///C:/Users/User/Documents/Visual%20Studio%202012/Projects/TinyMCE/ResponsiveFilemanagerMaster/filemanager/plugin.min.js" },
style_formats: [
{ title: 'Bold text', inline: 'b' },
{ title: 'Red text', inline: 'span', styles: { color: '#ff0000' } },
{ title: 'Red header', block: 'h1', styles: { color: '#ff0000' } },
{ title: 'Example 1', inline: 'span', classes: 'example1' },
{ title: 'Example 2', inline: 'span', classes: 'example2' },
{ title: 'Table styles' },
{ title: 'Table row 1', selector: 'tr', classes: 'tablerow1' }
]
});
</script>
</head>
<body>
<form id="form1" runat="server" method="post" action="Default.aspx">
<div>
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%"></textarea>
</div>
</form>
</body>
</html>
感謝您的快速響應。文件管理器文件夾已經在我的項目文件夾中的ResponsiveFilemanagerMaster內。我把它拿出來粘貼到項目的根部,我仍然有同樣的問題。 –
看看這是否可以幫助你http://stackoverflow.com/questions/19627785/responsive-filemanager-in-tinymce-directory-settings雖然我在PHP項目中使用它不是.NET,但我認爲這種方法是相似的@ C0pperBeard – AtanuCSE
我放棄了最終的響應文件管理器,似乎無法找到解決方案。我最終找到了另一個文件管理器[.NET文件管理器](http://www.andyarndt.net/TinyFileManager.aspx#sthash.mgJmiWxg.dpbs),並設法整合它。 –