close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

CK Editor: Unable to properly display stored data on page

Thread began 1/15/2022 7:16 pm by yogastudents362523 | Last modified 1/17/2022 6:20 pm by Ray Borduin | 116 views | 2 replies |

yogastudents362523

CK Editor: Unable to properly display stored data on page

Hello,

I have created a page whose intent is to allow a Presenter who has submitted a bio and etc. to peruse a trial LIVE view of their intended output. It presents them with what the End User will see, in case the Presenter wishes to make any further editorial changes once they have viewed the page on iPad, phone, or whatever.

My difficulty is that the CK editor output is currently raw HTML, being the output comming directly from the relevant field in the MySQL database.

How do I get the CK editor to unscramble the input text so it appears as it should.
I am hoping you can provide me with the necessary information?

I have tried figuring out which CK editor PHP config lines to insert, but so far nothing has worked. I also tried a Google query, before troubling you, but got nothing useful.

Thank you,
KAB

Sign in to reply to this post

Ray BorduinWebAssist

The recordset has built in Cross Site Scripting protection that prevents html and script from running from the database. To override that you just have to change your display code from:

$Recordset->getColumnVal("column");

to:

$Recordset->getColumnVal("column", false);

Adding the additional 'false" argument will tell it to bypass the protection and allow html and script to be displayed from the database column.

Sign in to reply to this post
Did this help? Tips are appreciated...

yogastudents362523

Thank you so much.
That is now working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...