Download the PHP package dmstr/yii2-json-editor without Composer
On this page you can find all versions of the php package dmstr/yii2-json-editor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmstr/yii2-json-editor
More information about dmstr/yii2-json-editor
Files in dmstr/yii2-json-editor
Package yii2-json-editor
Short Description Yii2 wrapper for "json-editor/json-editor" (is a fork of "jdorn/json-editor")
License BSD-2-Clause
Homepage https://github.com/dmstr/yii2-json-editor
Informations about the package yii2-json-editor
yii2-json-editor
Yii2 wrapper for "json-editor/json-editor" (fork of "jdorn/json-editor").
Configuration
If you want to use additional tested plugins, such as CKEditor, selectize or filefly you can include the following lines in your view
See the suggest section of composer.json for information about recommended composer packages.
Changelog
1.3
- updated
json-editorto^2.3.5(affects custom editorextendsusage, see commit)
1.2
See git log
Usage
File picker editors
Three string editors render a file picker instead of a plain text input. They
all store a single file path as the field value and are selected via the
schema format:
format |
Backend | Widget | Auth (default) |
|---|---|---|---|
filefly |
FileFly (/filefly/api) |
selectize | session/cookie |
flysystem |
generic filesystem API (/filemanager/api) |
select2 | session/none |
flysystem-rest |
eluhr/yii2-flysystem-rest-api |
selectize | session/cookie |
flysystem-rest (drop-in replacement for filefly)
flysystem-rest mirrors the filefly editor (selectize UI, image thumbnail
preview, array row handling) but targets the
eluhr/yii2-flysystem-rest-api
module.
By default it works exactly like filefly: session/cookie auth on the same
origin, no client configuration. The read endpoints it uses (search and
stream) are GET and accept the logged-in backend session when the API
module runs with enableSessionAuth. The browser sends the auth cookie
automatically, so nothing has to be passed through the widget — consumers only
set the schema format. The default base URL is /filemanager/api.
Migrating an existing filefly field is just a format change:
That is all that is required for the common (same-origin backend) case.
Advanced: overriding defaults / stateless JWT auth
For a different mount point, a storage filter, or stateless JWT auth (e.g.
a cross-origin or programmatic setup), the widget can inject a global
window.FLYSYSTEMRESTCONFIG via the optional flysystemRestConfig option:
When jwt is set, the editor sends Authorization: Bearer <jwt> on the
search request; otherwise it relies on the session cookie. The stream
endpoint (thumbnail previews) always uses plain image src URLs.
Plugin Bundles
This packages contains optional asset bundles for specialized plugings that can be rgistered when activated in the configuration array.
- CKEditorAsset (active per default for backward compatibility reasons)
- JoditAsset
- SceditorAsset
- SimpleMDEAsset
All versions of yii2-json-editor with dependencies
npm-asset/json-editor--json-editor Version ^2.5.0
npm-asset/dompurify Version ^3.0.0