meirankri/filesystem

tinymce 的文件管理器

1.6 2019-04-16 10:42 UTC

This package is not auto-updated.

Last update: 2024-09-25 12:09:42 UTC


README

# 文件系统

V1.4

使用 PHP 和 jQuery 创建的简单文件系统,使用两个参数,第一个是绝对路径,第二个是要用 'FileSystem' 类调用的相对路径。

PHP 中的使用

new FileSystem('C:\\your\\path', 'image');

这个文件系统专门用于图像文件

要添加更多要显示的扩展名,请将它们添加到数组 ext 中

将其作为插件添加到 tinymce,将此文件夹复制到 tinymce 的插件文件夹中,然后将此脚本添加到文件中

tinymce.init({
	selector: "textarea",theme: "modern",width: 680,height: 300,
	plugins: [
		" advlist autolink  link filesystem image lists charmap print preview hr anchor pagebreak",
		"searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
		"table contextmenu table directionality emoticons paste textcolor  code"
	],
	toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect",
	toolbar2: "|  link unlink anchor | image media | forecolor backcolor  | print preview code "
});

并添加此样式

.mce-filesystem{
	 width: 80% !important;
	 left:10% !important;
	 top:  10% !important;
	 height: 80% !important;
 }
 .mce-filesystem .mce-container-body{
	 width: 100% !important;
	 height: 100% !important;
 }
 .mce-reset{
	 height: 100% !important;
 }