Forum

Thread tagged as: Problem, Blog, CKEditor

Blog Version 4.0.3 CKEditor Source Mode Issue

I just upgraded a site with Blog version 4.0.3 and I modified the post.html template file in the perch/template/blog folder.

Prior to the upgrade in post.html I had the statement:

<perch:blog id="postDescHTML" editor="ckeditor" html="true"/>

and now I have:

<perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="ckeditor" textile="false" markdown="false" required="true" html="true"/>

I have also tried it with out the textile="false" and markdown="false".

Prior to this upgrade I have in existing blogs added html code directly in the source mode to display images and it rendered in clean html and displayed the image I wanted.

ex.

<img alt="CAST 8051s raffle winner Claus Knudsen" class="img-right" src="https://www.cast-inc.com/graphics/newsletter/clause-knudsen-8051-winner.jpg" style="width: 140px; height: 109px; float: right;" />

Now re-saving the exact blog entry, it renders with \'s and my images are not displaying.

ex.

<img alt=\"CAST 8051s raffle winner Claus Knudsen\" class=\"img-right\" src=\"https://www.cast-inc.com/graphics/newsletter/clause-knudsen-8051-winner.jpg\" style=\"width: 140px; height: 109px; float: right;\" />

Now that defaults are not assumed by the Blog software working on post.html, I assume I need something assigned somewhere to prevent this rendering behavior that has started with the upgrade.

Could you please instruct me on how to set things up to get the clean code entered in source mode of CKEditor to render without the special characters using the new Blog app?

Thanks in advance.

Sue Stewart

Sue Stewart 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The latest version is 4.1, and it fixes this PHP incompatibility.

This worked. Thanks for your quick reply.