[Editor] Add ux-editor with CKEditor, EditorJS and GrapesJS bridges#3687
Open
makraz wants to merge 35 commits into
Open
[Editor] Add ux-editor with CKEditor, EditorJS and GrapesJS bridges#3687makraz wants to merge 35 commits into
makraz wants to merge 35 commits into
Conversation
- Add .symfony.bundle.yaml and .gitattributes - Drop feature-branch composer branch-alias, add author - Fix assets/package.json symfony block (importmap) - Expand README with standard sub-tree-split boilerplate - Support non-controller exports and nested controllers in build - Rebuild dist
Contributor
📊 Packages dist files size differenceThanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR. |
- Regenerate pnpm-lock.yaml with editor + bridge dependencies (frozen-lockfile) - Add 'symfony-ux' keywords and fix files: ["dist"] in npm package.json files - Fix DOCtor-RST: use '::' over code-block:: php, 'javascript' over 'js', 'applications' over 'apps', matching title underline - Apply @symfony coding standards (php-cs-fixer)
- Add psr/log ^3 to require (used by AbstractEditorConfig); fixes --prefer-lowest builds that pulled the incompatible psr/log 1.x - Apply oxfmt formatting to TypeScript sources and config files
Bridges require symfony/ux-editor ^0.1|^1.0; the dev-feat/ux-editor-core => 0.1.x-dev alias is what lets the monorepo path package satisfy that constraint under composer (incl. --prefer-lowest). Fixes lowest-deps CI.
… path repos
- Doctrine tests: mock AbstractPlatform instead of instantiating SqlitePlatform
(renamed to SQLitePlatform in doctrine/dbal 4); production types already use
the version-agnostic AbstractPlatform
- Remove per-bridge 'repositories' path config with symlink:false; the monorepo
build-packages.php injects path repos (symlinked), and the forced copy was
mirroring src/Editor/vendor temp files ("Unable to guess file type")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
symfony/ux-editoradds a single Symfony form field (EditorType) on top ofmultiple content-authoring editors — WYSIWYG, block and page-builder — behind
one consistent API.
The core package is editor-agnostic and provides:
EditorContentInterfacewithHtmlContent,BlockContentandPageContent, plus anEditorContentFormatenum;EditorTypeform abstraction with data transformers;editor_html,editor_blocks,editor_page);EditorUploadController,SignedUploadUrlGenerator,EditorUploadHandlerInterface, local handler + registry);ux_editor_renderTwig function (HTML sanitized, blocks via registry, pagerendered in a sandboxed iframe);
LiveEditortrait for debounced autosave with LiveComponent;debug:ux-editorconsole command and a WebProfiler data collector.Concrete editors plug in through
BridgeInterface+BridgeRegistry. This PRalso includes three bridges as separate composer + npm sub-packages:
symfony/ux-editor-ckeditor— CKEditor 5 (WYSIWYG family)symfony/ux-editor-editorjs— EditorJS (block family)symfony/ux-editor-grapesjs— GrapesJS (page-builder family)PHP and JS test suites are included and passing. Documentation lives in
src/Editor/doc/.