Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Aceeditor Bundle

Aceeditor Bundle Laravel Package

norzechowicz/aceeditor-bundle

Symfony bundle that integrates the Ace code editor into your app, providing form field support for editing code with syntax highlighting, themes, and editor options. Useful for admin panels, CMS editors, and any UI that needs in-browser code editing.

View on GitHub
Deep Wiki
Context7

Bundle that integrate excellent JavaScript ace editor into Symfony2 Form.

Frequently asked questions about Aceeditor Bundle
Can I use this bundle directly in Laravel, or is it only for Symfony?
This bundle is designed for Symfony, but you can integrate it into Laravel by leveraging Symfony bridge packages like `symfony/form` or `symfony/bundle-framework-bundle`. Alternatively, consider using a Laravel-specific package like `beberlei/ace-editor` for tighter integration. The bundle’s core functionality (Ace Editor) remains usable in Laravel via manual JS/CSS inclusion.
What Laravel versions does this bundle support?
This bundle doesn’t natively support Laravel—it’s built for Symfony 5.4–7.0. However, if you’re using Laravel with Symfony components (e.g., via `laravel/symfony-bridge`), you may adapt it for Laravel 8+ (PHP 8.2+). For pure Laravel, evaluate alternatives like `tinymce/tinymce-bundle` or custom Ace Editor integration.
How do I configure Ace Editor themes or syntax modes in Laravel?
Since this bundle targets Symfony, you’d need to manually include Ace Editor’s JS/CSS in Laravel (e.g., via Laravel Mix or Vite) and replicate its configuration. The bundle’s `AceEditorType` options—like `theme: 'ace/theme/monokai'`—can be mirrored in a custom Laravel form field using JavaScript initialization. Check Ace Editor’s [docs](https://ace.c9.io/) for theme/mode references.
Does this bundle work with Laravel’s Blade templates instead of Twig?
No, this bundle is tightly coupled with Symfony’s Twig templating. For Laravel Blade, you’d need to manually embed the Ace Editor via JavaScript (e.g., using Alpine.js or jQuery) and handle form field updates manually. The bundle’s automatic textarea replacement won’t work without Twig.
Are there any known conflicts with Laravel’s frontend assets (e.g., Laravel Mix, Vite)?
Yes, Ace Editor requires jQuery (unless using ES modules) and may conflict with Laravel Mix/Vite’s asset pipelines. You’ll need to manually include Ace Editor’s files in your `resources/js` or `public/js` and configure Vite to ignore its dependencies. Test for namespace collisions (e.g., `$` in jQuery vs. Laravel’s global helpers).
How do I handle form submission with Ace Editor in Laravel?
The bundle automatically syncs Ace Editor content to a hidden textarea in Symfony. In Laravel, you’ll need to manually bind the editor’s value to a hidden input (e.g., using JavaScript) or use a custom form request handler. Ensure the textarea’s `name` attribute matches your Laravel form field name for proper validation and submission.
What are the alternatives to this bundle for Laravel?
For Laravel, consider these alternatives: 1) `beberlei/ace-editor` (Symfony-like but Laravel-friendly), 2) `tinymce/tinymce-bundle` (for rich text), 3) `monaco-editor` (VS Code’s editor via CDN), or 4) custom integration using Ace Editor’s [standalone JS](https://ace.c9.io/#nav=embed). Evaluate based on your need for syntax highlighting, themes, or collaborative editing.
Is this bundle actively maintained? Should I use it for production?
The bundle’s last release was January 2024, with low GitHub activity (28 stars). While it may work for Symfony 5–7, its long-term viability is uncertain. For production, audit its dependencies (e.g., Ace Editor’s BSD license, potential CVEs) and consider forking it if you need updates. Test thoroughly in staging before deployment.
How do I test this bundle in a Laravel CI/CD pipeline?
Since this bundle isn’t Laravel-native, test it by: 1) Mocking Symfony’s Form component in Laravel (e.g., via `symfony/form` in a test container), 2) Verifying Ace Editor’s JS/CSS loads without errors in your Laravel frontend tests, and 3) Validating form submissions with edited content. Use tools like Laravel Dusk or Pest to simulate editor interactions.
Can I use this bundle for non-code content (e.g., JSON, XML) in Laravel?
Ace Editor excels at code editing but can handle JSON/XML with proper mode configuration (e.g., `mode: 'ace/mode/json'`). However, for non-code content like rich text, consider Laravel-specific packages like `spatie/laravel-medialibrary` (for files) or `tinymce/tinymce-bundle` (for WYSIWYG). Validate whether Ace Editor’s features align with your use case.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin