Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Plugin support
  3. » ebl_quill

#1 2025-01-12 09:19:52

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 592
Website

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

#2 2025-01-12 17:00:43

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,770
Website

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

#3 2025-01-12 19:07:10

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 592
Website

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(/&lt;(txp::[a-zA-Z0-9_:]+)([^>]*)&gt;/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, '&lt;$1$2&gt;');
    quillBody.root.innerHTML = initialContent;
  }

Offline

#4 Yesterday 18:33:02

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 116
Website

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

#5 Today 05:55:28

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 116
Website

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

  1. Index
  2. » Plugin support
  3. » ebl_quill

Board footer

Powered by FluxBB