Forum

Thread tagged as: Problem, Addons, CKEditor

Perch 3 migration: where is CKeditor?

I am updating an old project into Perch 3. Everything works fine expect custom CKeditor is not appearing. Any idea?

Perch: 3.0.6, PHP: 5.4.4, MySQL: 5.5.25, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.6), assets (3.0.6), categories (3.0.6), perch_blog (5.5.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', ); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /Applications/MAMP/htdocs/oficina4play.com/perch
PERCH_CORE: /Applications/MAMP/htdocs/oficina4play.com/perch/core
PERCH_RESFILEPATH: /Applications/MAMP/htdocs/oficina4play.com/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 64M, Total max file upload: 32M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: oficina4play:8888
DOCUMENT_ROOT: /Applications/MAMP/htdocs/oficina4play.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

template

<perch:content type="textarea" label="Texto" id="textoTeam" html="true" editor="ckeditor2" />

_config.inc for CKeditor

<script type="text/javascript" src="PERCH_LOGINPATH/addons/plugins/editors/ckeditor2/ckeditor.js"></script>
<script type="text/javascript" src="PERCH_LOGINPATH/addons/plugins/editors/ckeditor2/adapters/jquery.js"></script>
<script type="text/javascript" src="PERCH_LOGINPATH/addons/plugins/editors/ckeditor2/build-config.js"></script>
<script type="text/javascript" src="PERCH_LOGINPATH/addons/plugins/editors/ckeditor2/config.js"></script>
<script type="text/javascript" src="PERCH_LOGINPATH/addons/plugins/editors/ckeditor2/styles.js"></script>
<script type="text/javascript" src="PERCH_LOGINPATH/addons/plugins/editors/ckeditor2/lang/es.js"></script>

<link rel="stylesheet" href="PERCH_LOGINPATH/addons/plugins/editors/ckeditor2/contents.css" type="text/css" />

<script>
    // Replace the <textarea id="editor1"> with a CKEditor
    // instance, using default configuration.

        CKEDITOR.replaceAll( 'ckeditor2' );
</script>

Raul Serrano

Raul Serrano 0 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Have you updated CKEditor to the one for Perch 3?

As I used a custom editor configuration I downloaded it from CKeditor's site. I just updated to newest version (4.7) and is not appearing...

Even if I install the one from Perch's site is not working

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's happening?

It's showing as a simple textarea, with all imported content, but with all html code on it

<p style="text-align:justify"><em>Juan Antonio Bueno, Javier Guzmán y Ángel Mª Azagra</em>, arquitectos por la ETSAM, coordinan desde 2003 la “oficina 4play arquitectura”, en cuyo marco prestan ambiciosos servici<strong>os de arquitectu</strong>ra, con minúsc<span style="color:#FF8C00">ulas. Soluciones funcionalmente rica</span>s y ambiguas, formalmente divertidas, constructivamente imaginativas, luminosas y pretendidamente <span style="font-size:24px">sostenibles</span>.//<br />La honestidad de dichas propuestas se consigue mediante la deseada y estrecha colaboración multidisciplar y la complicidad con los objetivos del cliente.// <span style="background-color:#A52A2A">Los proyectos </span>son abordados como viajes y cada una de las etapas del<span style="color:#FF0000"> proceso es tan disfrut<span class="marker"><big>ada como la solución</big></span> finalmente </span>encarpetada y por lo tanto encorsetada.// “oficina 4play” busca con rigor constructivo los pliegues, provocar la sorpresa, las segundas lecturas, el juego y la participación, busca al usuario y hace que tom<span style="font-family:courier new,courier,monospace">e conciencia de q</span>ue es parte necesaria para completar sus propuestas arquitectónicas... :)</p>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Make sure you're up to date with both the latest Perch and the latest version of CKEditor from here: https://addons.perchcms.com/addons/ckeditor

Everything is updated, Perch and CKEditor

Perch: 3.0.6, PHP: 5.4.4, MySQL: 5.5.25, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.6), assets (3.0.6), categories (3.0.6), perch_blog (5.5.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', ); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /Applications/MAMP/htdocs/oficina4play.com/perch
PERCH_CORE: /Applications/MAMP/htdocs/oficina4play.com/perch/core
PERCH_RESFILEPATH: /Applications/MAMP/htdocs/oficina4play.com/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 64M, Total max file upload: 32M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: oficina4play:8888
DOCUMENT_ROOT: /Applications/MAMP/htdocs/oficina4play.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Drew McLellan

Drew McLellan 2638 points
Perch Support

Everything is not updated. https://grabaperch.com/update/v3-0-8

Ok, sorry about that Drew. I just installed the CKeditor you point at Perch's site and it works. But I would like to have the old configuration I had on previous version. Witch files should I copy from the other one?

Drew McLellan

Drew McLellan 2638 points
Perch Support

The documentation for customising editors is here:

https://docs.grabaperch.com/api/editors/

Thanks Drew, it's working