Download the PHP package dmi3yy/dtui-editor without Composer

On this page you can find all versions of the php package dmi3yy/dtui-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 dtui-editor

dTui.editor

TOAST UI Editor 3 integration for Evolution CMS 3.5.7+.

The package replaces the manager rich text editor with a self-hosted TOAST UI Editor build and adds Evolution CMS conveniences on top: EVO resource links, manager image browser support, paste-to-upload images, UML diagrams, syntax highlighting, table merge support, multilingual UI assets, and theme-aware styling for the four Evolution manager themes.

Full dDocs-ready package documentation lives in docs/.

Features

Requirements

Installation

From the Evolution core directory:

For local package development, the demo can use a Composer path/symlink install, for example:

Then publish the config and assets:

Or publish only one group:

Published files:

After publishing, select dTuiEditor as the rich text editor in Evolution manager settings.

Configuration

The main configuration file is:

Important defaults:

Editor Modes

dTui.editor supports three editor modes through the manager setting dtui_editor_mode, the config key default_editor_mode, or per-field/profile editorMode overrides. This setting chooses the initial state, and the editor renders its own three-button switcher so users can move between modes while editing:

Mode Behavior
markdown Markdown editor only.
split Markdown editor with live preview side by side.
wysiwyg WYSIWYG editor only.

Legacy aliases are normalized: md and markdown-only become markdown, vertical becomes split, and ww or wysiwyg-only become wysiwyg.

Routes used by package features:

The route values are relative to the site base URL and are passed to the browser during editor initialization.

Profiles

Profiles define toolbar options, editor options, and the plugin set used for a field.

Bundled profiles:

The package removes scrollSync from toolbars because it does not fit the Evolution manager layout.

Plugins

All plugins are configured under plugins in dTuiEditor.php and can also be exposed as manager interface settings.

Default plugin state:

Plugin Default Purpose
codeSyntaxHighlight enabled Prism-based code highlighting for fenced code blocks.
colorSyntax enabled Text color controls.
tableMergedCell enabled Merged cells in TOAST UI tables.
uml enabled PlantUML diagrams through TOAST UI custom blocks.
image enabled Evolution image picker and paste upload integration.
evolinks enabled Evolution resource link picker.
chart disabled Bundled, but disabled by default because it can hang the manager in this integration.

The chart assets are only loaded if the chart plugin is enabled and included in the active profile.

EVO Links

The evolinks plugin adds an E toolbar button. It opens an Evolution resource picker with search and inserts the selected resource as a link.

Default behavior:

Supported output modes:

Images

Images can be inserted in three ways.

  1. Paste an image from the clipboard with Ctrl+V or Command+V.
  2. Use the default TOAST UI image dialog and paste a direct image URL.
  3. Use the custom Img toolbar button to open the Evolution manager image browser.

Clipboard uploads use dtui-image-upload and save files under the configured relative path:

Uploaded filenames are prefixed with dtui- and include a timestamp/hash to avoid collisions. uploadPath is resolved under the Evolution base path and only accepts safe relative path segments.

Set plugins.image.options.pasteUpload to false to disable clipboard uploads while keeping the image picker. Set plugins.image.options.uploadPath to change the upload directory.

UML

The uml plugin adds a toolbar button and supports TOAST UI custom block syntax:

`

In light themes, diagrams use the configured PlantUML renderer directly. In dark and darkness, dTui.editor routes diagrams through:

That route decodes the PlantUML payload, injects a dark PlantUML skin, re-encodes the diagram, and redirects to the configured renderer. Invalid UML payloads return 404.

dTui.editor keeps UML editable after save. TOAST UI runtime UML blocks are stored as a normal image plus the original PlantUML source:

data-uml stores the original PlantUML source as base64url. When the resource is opened again, the package restores it back to $$uml ... $$ before the editor is shown, so diagrams are not one-way image exports.

Use plugins.uml.options.rendererURL to change the PlantUML renderer. Set plugins.uml.options.darkTheme to false to always use that renderer directly.

Code Highlighting

Code highlighting is enabled through Prism. Use fenced code blocks with a language name:

`

Bundled Prism assets are intentionally limited to common web/content languages: HTML/XML, CSS, SCSS, JavaScript, TypeScript, PHP, Blade, SQL, JSON, Markdown, Bash, and YAML. The package uses the lean TOAST UI code syntax plugin with a local Prism highlighter instead of the all-languages bundle, which keeps Safari and Evolution manager pages responsive. Aliases such as js, ts, laravel-blade, bladephp, md, sh, shell, yml, markup, and xml still work for fenced code blocks without expanding the visible language list.

Dark manager themes remove Prism text shadows so code stays readable inside Evolution's dark editor surface.

Languages

dTui.editor maps Evolution manager languages to TOAST UI language packs.

English is built into TOAST UI. Bundled UI packs include common Evolution manager languages such as uk-UA, ru-RU, de-DE, fr-FR, es-ES, it-IT, pl-PL, pt-BR, ja-JP, ko-KR, and zh-CN. The package first checks fe_editor_lang, then manager_language, then falls back to default_language.

Themes

Supported manager theme modes are auto, lightness, light, dark, and darkness. In auto mode the editor follows the Evolution manager theme through EVO_themeMode and MODX_themeMode cookies/classes. The CSS covers toolbar buttons, EVO link dialogs, editor surfaces, code blocks, and Prism tokens for both dark themes.

HTML and Markdown Roundtrip

Evolution content fields usually store HTML, while TOAST UI edits Markdown internally.

dTui.editor handles that bridge automatically:

This keeps saved Evolution content clean while still giving editors Markdown/WYSIWYG editing.

JavaScript API

The browser API is exposed as window.dTuiEditor.

Available methods:

boot is called automatically by the Evolution plugin. The other methods are useful for custom manager screens and dynamic field integrations.

Assets

Runtime assets are published to:

The package loads only the assets needed by the active profile/plugin set and deduplicates each CSS/JS file when multiple editor init events run on one page.

When assets change during development, republish them:

Development Smoke Checks

Useful checks before committing package changes:

Route checks against a local demo:

Expected behavior:

Notes


All versions of dtui-editor with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
evolution-cms/evolution Version ^3.5.7
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 dmi3yy/dtui-editor contains the following files

Loading the files please wait ...