Download the PHP package douyasi/laravel-ckeditor without Composer

On this page you can find all versions of the php package douyasi/laravel-ckeditor. 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 laravel-ckeditor

CKEditor(4) for Laravel with image upload support

ENGLISH README

CKEditor —— 国外大名鼎鼎的富文本编辑器,官方网站:https://ckeditor.com/ 。目前官方最新版本为 CKEditor5 ,建议配合 React/Vue 等前端框架工程化使用。

Latest Stable Version Latest Unstable Version License Total Downloads

更新日志

兼容版本

本扩展包经过测试,适配 Laravel 5 以上所有版本(Laravel 5 - 9 均适配)。

安装与配置

composer.json 新增 "douyasi/laravel-ckeditor": "~1.0" 依赖,然后执行: composer update 操作。

亦可在项目目录下,终端中执行 composer require "douyasi/laravel-ckeditor:~1.0" 命令。

如果 Laravel 插件自动发现功能没起到作用,需要手动在 app.php 中添加:

然后,执行下面 artisan 命令,发布该扩展包配置等项。

现在您可以访问 /laravel-ckeditor/example/basic (基础版)或 /laravel-ckeditor/example/standard (标准版)或 /laravel-ckeditor/example/full (完整版)路由,不出意外,您可以看到扩展包提供的示例页面。

编辑器图片默认会上传到 public/uploads/content 目录下;编辑器相关功能配置位于 config/ckeditor.php 文件中。

使用说明

参考本扩展包 resources\views 目录下 example 代码,引入必须的静态的资源 {!! ckeditor_js() !!}{!! ckeditor_css() !!}

各版本编辑器工具栏对比图

基础版 图1 - 基础(basic)版

标准版 图2 - 标准(standard)版

完整版 图3 - 完整(full)版

目前本扩展包自定义(customized)版与完整版完全相同,发布包资源之后,开发者自行配置与修改 customized.blade.php 模板文件(位于 resource/views/vendor/ckeditor/parts/ 目录),其他版本的模板建议不要修改。

使用示例

如果想使用 CKEditor 基础版编辑器,就引入 @include('ckeditor::parts.basic', ['editorId' => 'editor1']) 代码。其中,传入的 editorId 变量值需与前端上面 textarea 元素 id 一一对应。其他版本,如 standard (标准版)、 full (完整版) 、 customized (自定义版)以此来推。

下面示例代码引入的 full 版 CKEditor 编辑器:

图片上传

图片上传默认使用本扩展包提供的服务(仅限本地存储),你也可以编写自己的代码使用自己的 路由。要禁用本包上传服务,只需修改 ckeditor.php 配置中 usingLocalPackageUploadServer 项为 false

图片上传支持三种模式:传统表单、浏览器拖曳上传和剪切板粘贴图片上传(PS - 部分浏览器可能不支持拖曳与剪切板粘贴上传)。

upload-gif

传统浏览器表单按钮提交上传,需配置 filebrowserImageUploadUrlfilebrowserUploadUrl ;浏览器拖曳文件上传或者剪切板粘贴图片上传,需配置 imageUploadUrluploadUrl

关于

博客 : http://douyasi.com

Copyright (c) 2014-2099 douyasi - 由 ycrao 创建的组织。


All versions of laravel-ckeditor with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
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 douyasi/laravel-ckeditor contains the following files

Loading the files please wait ....