WYSIWYG isn't working

8 posts by 3 authors in: Forums > CMS Builder
Last Post: May 11, 2015   (RSS)

By degreesnorth - May 7, 2015


I've added a wysiwyg box onto a CMSB page, yet the formatting isn't working.  For example, I'm getting

<p>Rural Outreach Seminar and Sibling Workshop in Coffs Harbour</p>< p><span style="font-size: medium;"><strong> "Filling the Void in Coffs Harbour" </strong></span></p>< p>Genetic Alliance Australia is running a FREE seminar to bring together families, health professionals and service providers.   Guest Speakers include Dr Ben Kamien - clinical geneticist, NDIS, Carers NSW, and local service providers. Morning tea and lunch will be provided. All attendees are invited to join us for a complimentary networking dinner on Saturday evening. Venue to be advised. We hope to see you there as it is a great opportunity to network and have a fun relaxing night out! (Bookings essential)</p>< ul>< li><strong>Time</strong>: Saturday 13th June: 1:30pm– 4pm</li>< li>Sibling Workshop 6pm onward</li>< li>Networking dinner</li>< li>

on this page: http://www.geneticalliance.org.au/news.php - under the first news listing.

Can you advise what I'm doing wrong?  I've attached the  page if that helps.



news.php 11K

By jenolan - May 7, 2015

Just had a look at the html you are emitting it is translating the <> to &lt; &gt; you must be putting the text through htmlspecialcharacters() or similar.


&lt;p&gt;Rural Outreach Seminar and Sibling Workshop in Coffs Harbour&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;strong&gt; &quot;Filling the Void in Coffs Harbour&quot; &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Genetic Alliance Australia is running a FREE seminar to bring together families, health professionals and service providers.   Guest Speakers include Dr Ben Kamien - clinical geneticist, NDIS, Carers NSW, and local service providers. Morning tea and lunch will be provided. All attendees are invited to join us for a complimentary networking dinner on Saturday evening. Venue to be advised. We hope to see you there as it is a great opportunity to network and have a fun relaxing night out! (Bookings essential)&lt;/p&gt;
&lt;li&gt;&lt;strong&gt;Time&lt;/strong&gt;: Saturday 13th June: 1:30pm– 4pm&lt;/li&gt;
&lt;li&gt;Sibling Workshop 6pm onward&lt;/li&gt;
&lt;li&gt;Networking dinner&lt;/li&gt;
&lt;p&gt;&lt;strong&gt;Time: &lt;/strong&gt; Sunday 14th June 9.30am – 3:30pm&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Seminar Venue:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Opal Cove Resort, Opal Boulevard, Coffs Harbour NSW 2450&lt;/p&gt;
&lt;p&gt;For any questions or registration to the Saturday or Sunday, please contact Doriane or Ayesha on (02) 9295 8314 or email projects@geneticalliance.org.au Alternatively, you can register online following the link below: &lt;a href=&quot;https://www.surveymonkey.com/s/36Z5XMB&quot; target=&quot;_blank&quot;&gt;https://www.surveymonkey.com/s/36Z5XMB&lt;/a&gt;&lt;/p&gt;


By gregThomas - May 11, 2015


Larry's suggestion seems like the most likely issue, the other option might be that the html was copied from another page directly into the WYSIWYG, and the WYSIWYG hasn't converted the text into html. If this is the case, you can resolve it by pasting the html into the HTML code editor. I've attached an image that shows the button to press to launch  it.



Greg Thomas

PHP Programmer - interactivetools.com

paste_html.png 211K

By degreesnorth - May 11, 2015

Hi Greg

Unfortunately, it's got nothing to do with the text - there's something wrong with the editor:

1) if I drop in text from notepad, the formatting doesn't work

2) if I use the HTML editor, it doesn't work

3) if I try again on a new file, it doesn't work

4) I've deleted and reinstalled it, and it still doesn't work

4) this problem also occurs on other sites, so that's why I tend not to use the wysiwyg editor, however, the clients wants the functionality the editor provides.

Any ideas?



By gregThomas - May 11, 2015

Hey Carole, 

I think it will be easier for me to diagnose the problem if I can see the what's appearing in the WYSIWYG. Please could you fill out a second level support request here:


Then I can take a closer look at what's causing the issue.



Greg Thomas

PHP Programmer - interactivetools.com

By gregThomas - May 11, 2015

Hi Carole,

I've resolved the issue. On line 260 of news.php, you had the following code:

<?php echo htmlencode($record['details']) ?> <br>

I've changed it to this:

<?php echo $record['details']; ?> <br>

The issue was the htmlencode function was converting all the special characters in the document to be their web save equivalents, so the content wasn't being displayed as HTML code. It's a CMS builder function that behaves very similarly to this one:


Let me know if you have any questions.



Greg Thomas

PHP Programmer - interactivetools.com

By degreesnorth - May 11, 2015

You are a genius!