Download the PHP package zerosonesfun/flarum-preview without Composer
On this page you can find all versions of the php package zerosonesfun/flarum-preview. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package flarum-preview
Preview (zerosonesfun/flarum-preview)
Live preview for the Flarum composer. Textarea is always the source of truth (raw Markdown/BBCode); preview is either a split panel below the editor or a full toggle via the eye button.
How it works
-
Default (Preview on click OFF)
- Composer: top = textarea, bottom = split preview panel (server-rendered HTML, debounced). Panel is open by default; tap the header to collapse/expand.
- Drag header up to expand the preview more.
- Preview updates as you type (debounce + optional instant triggers).
-
Preview on click ON
- Split view is hidden. No bottom preview panel.
- Eye button appears in the composer.
- Reply composer: Flarum’s default preview button is replaced by this one.
- Click eye → full preview (textarea hidden, only rendered HTML). Click again → back to textarea.
- Settings
- Preview debounce (ms): Delay before calling
POST /api/preview(default 300). - Instant triggers: If ON, preview is requested immediately on certain keystrokes (e.g. closing
**, ` bash cd /path/to/flarum composer require zerosonesfun/flarum-preview:^1.0 bash cd /path/to/flarum composer require zerosonesfun/flarum-preview:^2.0 bash php flarum cache:clear bash composer update zerosonesfun/flarum-preview bash composer remove zerosonesfun/flarum-preview bash cd /path/to/flarum-preview npm install npm run build
- Preview debounce (ms): Delay before calling
Produces js/dist/forum.js and js/dist/admin.js.
Repository
zerosonesfun/flarum-preview — GitHub
All versions of flarum-preview with dependencies
PHP Build Version
Package Version
The package zerosonesfun/flarum-preview contains the following files
Loading the files please wait ...