Download the PHP package death_satan/dcat-wang-editor without Composer

On this page you can find all versions of the php package death_satan/dcat-wang-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dcat-wang-editor

Dcat Admin Form WangEditor扩展 拖拽上传,复制上传

部分代码参考dcat-markdown

WangEditor文档

示例



安装和使用

composer 安装



使用

在form中使用



所有的配置参数请参考官方参数,本扩展只做了极小的兼容性处理

建议使用phpstorm编辑器,并且安装扩展后运行 php artisan admin:ide 命令生成ide提示文件

已开放的接口

方法名 参数 说明 示例
colors array $colors 配置颜色(文字颜色、背景色) 官方文档
height int $height 设置编辑器容器高度 参考WangEditor文档
emotions array $emotions 配置表情图标 emotions示例
Menu array $data 定义显示哪些菜单和菜单的顺序 官方文档地址(json换成数组传入即可)
ExcludeMenus array $data 剔除少数菜单 官方文档地址(json换成数组传入即可)
zIndex int $zIndex 配置 z-index 参考WangEditor文档
focus bool $focus=false 自动 focus 官方文档
showFullScreen bool $show=false 设置全屏功能 参考WangEditor文档
showMenuTooltips bool $show=false 设置菜单栏提示 参考WangEditor文档
menuTooltipPosition string $position = 'down' 设置菜单栏提示为[下标:up,下标:down] 参考WangEditor开发文档
pasteFilterStyle bool $state = false 关闭粘贴样式的过滤 同上
pasteIgnoreImg bool $ignore=true 忽略粘贴内容中的图片 同上
disk string $disk = 'local' 设置文件驱动 config/filesystems.php里面设置的disk
ImgDirectory string $path 设置图片上传路径 ...
VideoDirectory string $path 设置视频上传路径 ...
setCss string $css 设置highlight的样式css名 示例
lang string $lang='en' 设置语言 目前官方默认可选的只有 zh-CN en

All versions of dcat-wang-editor with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4.0
dcat/laravel-admin Version ~2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package death_satan/dcat-wang-editor contains the following files

Loading the files please wait ....