Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
ebl_quill
ebl_quill_editor: Quill Integration for Textpattern
I’ve developed a plugin that replaces the standard Body and Excerpt textareas in Textpattern’s Write panel with the Quill rich text editor. Quill provides a modern editing experience with features like headings, formatting tools, media embedding, and more.
If you’re looking for a clean, flexible WYSIWYG editor for Textpattern, you can download it here.
This does away with the need for TinyMCE and its 1000 limited uses.
Let me know if you have any feedback.
Offline
Re: ebl_quill
Cool! Always nice to have a new option.
One of the aspects that has hampered the adoption of other editors up to now – at least for me – has been the inability to use txp::shortcodes in the body and excerpt fields. I’m guessing that’s not possible here as the content is probably not parsed?
TXP Builders – finely-crafted code, design and txp
Offline
Re: ebl_quill
It supports shortcodes now as of 5 minutes ago.
// Sync Quill content back to the hidden textarea, preserving shortcodes quillBody.on('text-change', function() { var htmlContent = quillBody.root.innerHTML; // Convert encoded <txp::...> back to raw shortcodes htmlContent = htmlContent.replace(/<(txp::[a-zA-Z0-9_:]+)([^>]*)>/g, '<$1$2>'); // Update the textarea $body.val(htmlContent); }); // Load initial content from the textarea, then encode shortcodes for Quill rendering var initialContent = $body.val(); initialContent = initialContent.replace(/<(txp::[a-zA-Z0-9_:]+)([^>]*)>/g, '<$1$2>'); quillBody.root.innerHTML = initialContent; }
Offline
Re: ebl_quill
I’ve tried this on 4.8.8, 4.9.0.dev-1, and 4.9.0.dev-2 and I got nothing.
Am I missing a setting? Or a install?
Offline
Re: ebl_quill
It turns out I was missing a setting. When you click on a plugin, there is a new panel that allows one to edit the loading order, etc.
This plugin defaulted to ‘public’. I changed it to ‘back end’ and it works great.
Thank you for the work, The Eric.
Offline
Pages: 1