Forum

Thread tagged as: Problem, Redactor, CKEditor

Radactor and Ckeditor within a block

Hi,

I have an odd problem when using both Redactor and Ckeditor inside blocks. When I put my cursor inside a text edit area using Redactor, the Ckeditor floats overtop of Redactor. Here is my blocks code.

<perch:blocks>
<perch:before>
    <div class="full_width clearfix">
    <div class="wrapper">
</perch:before>

            <perch:block type="text1" label="Redactor_Code">
                        <div class="grid_4 hide"></div>
                        <div class="grid_8">
                            <perch:content id="body"  type="textarea" label="Body" editor="redactor" html="true" />
                        </div>
                        <div class="grid_1">
                            <perch:content id="texts" type="textarea" label="Code" html="true" editor="ace" />
                        </div>

             </perch:block>

             <perch:block type="text2" label="Redactor">
                        <div class="grid_4 hide"></div>
                        <div class="grid_8">
                            <perch:content id="body"  type="textarea" label="Body" editor="redactor" html="true" />
                        </div>
                        <div class="grid_1">
                            <perch:content id="texts" type="textarea" label="Code" html="true" editor="redactor" />
                        </div>
             </perch:block>

             <perch:block type="text3" label="Ckeditor">
                        <div class="grid_4 hide"></div>
                        <div class="grid_8">
                            <perch:content id="body"  type="textarea" label="Body" editor="ckeditor" html="true" />
                        </div>
                        <div class="grid_1">
                            <perch:content id="texts" type="textarea" label="text" html="true" editor="ckeditor" />
                        </div>
             </perch:block> 

             <perch:block type="text4" label="Redactor_image">
                        <div class="grid_4 hide"></div>
                        <div class="grid_8">
                            <perch:content id="body"  type="textarea" label="Body" editor="redactor" html="true" />
                        </div>
                        <div class="grid_1">
                            <a href="<perch:content type="text" id="imagelink" label="Image Link"/>" ><img src="<perch:content type="image" id="image" label="Image" />" alt="<perch:content type="text" id="alt" label="Description" required="true" help="e.g. Photo of MD John Smith with his best wig on" title="true" />" /></a>
                        </div>
             </perch:block>   


<perch:after>   
    </div>
    </div>
</perch:after>
</perch:blocks>
Patrick Bartel

Patrick Bartel 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What's the scenario whereby you'd have both of those two editors? Why not one or the other?

I just like some options in both. But I presume it can't be done?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That scenario has never been tested. We'll add it to our list of tests.

Thanks.

I have a weird issue with ckeditor in a block too where when it is a new content block the content area is blank but when I save it the editor appears and works as normal.

Here is my block code


<perch:blocks>

<perch:block type="textarea" label="Text Block">
    <perch:content id="text" type="textarea" label="Text" html="true" editor="ckeditor" imagewidth="640" imageheight="480" />
</perch:block>

</perch:blocks>