We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Error, Redactor

Redactor in Repeaters

I just wanted to report an issue with using Redactor in Repeaters.

If you add text to a Redactor field in a Repeater, then 'Add an item', add text to the new Redactor field: on saving, the text disappears from all but the first Redactor field. Re-adding the text after the first save is successful.

I imagine it's a JS issue with the Repeater not registering a new Redactor field before save.

Another small issue is the Redactor CSS: All 'H' Headings show as the same point size.

Simon Clay

Simon Clay 127 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show us your diagnostics report and template?

Simon Clay

Simon Clay 127 points

Health check

 Perch Runway is up to date
 PHP 5.6.28 is up to date
 MySQL 5.6.34 is up to date
 Image processing available
Summary information

Perch Runway: 3.0.4, PHP: 5.6.28, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4)
App runtimes: <?php $apps_list = [ ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/simonclay/Dropbox/Clients/HFH Care/New Website Design/Website Folder/perch
PERCH_CORE: /Users/simonclay/Dropbox/Clients/HFH Care/New Website Design/Website Folder/perch/core
PERCH_RESFILEPATH: /Users/simonclay/Dropbox/Clients/HFH Care/New Website Design/Website Folder/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Users/simonclay/Dropbox/Clients/HFH Care/New Website Design/Website Folder
HTTP_HOST: hfhnew:8888

Template

<section class="container introduction">
        <div class="row text-center">
            <perch:repeater id="intro" label="Introduction">
                <div class="col-md-4">
                    <h3><perch:content id="heading" type="text" label="Heading" required="true" title="true" /></h3>
                    <perch:content id="text" type="textarea" label="Text" html="true" editor="redactor" imagewidth="750" imageheight="480" />
                </div>
            </perch:repeater>
        </div>
</section>

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Is this the entire template or just the repeater section?

Simon Clay

Simon Clay 127 points

Just the repeater section. Here is a quick vid showing this template:

<perch:repeater id="list" label="Listing">
   <perch:content id="text" type="textarea" label="Text" html="true" editor="redactor" imagewidth="640" imageheight="480" />
</perch:repeater>

Redactor in Repeaters

Drew McLellan

Drew McLellan 2638 points
Perch Support

This was resolved in 3.0.5