close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Editor showing code

Thread began 2/14/2019 8:54 am by Patrice | Last modified 2/14/2019 1:49 pm by Ray Borduin | 1608 views | 28 replies |

PatriceWebAssist

Editor showing code

I have read a number of solutions but am still lost. I have the latest DA; I removed the older ck folder (this is a redo on an older site). Redid an html editor, re-upped the new version of CK folder.

The only thing different on this work, is that I am using the new mysqli approach. So the insert and the update html editors are showing <p> and <br> and <h1> etc.

Sign in to reply to this post

Ray BorduinWebAssist

You have to turn off Cross Site Scripting protection in the set value by adding the "false" argument to the end of the ->getColumnVal() method call where it is referenced in the HTML editor code. It will look like:

$RSname->getColumnVal("columnName",false)

If you have trouble finding the line to update, attach your update page and I can help with line numbers and a more specific code reference.

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

PatriceWebAssist

Thanks Ray. I had just finished another site yesterday and it worked fine. So I deleted the web assist folder and replaced it with the one from the other site. I'm uploading it via transmit now. If that doesn't work, then I will try to find the change for the updater page. Thanks.

Sign in to reply to this post

PatriceWebAssist

Laugh. That wiped out all my pages. Total blank. So much fun. I'll see what I can do before bothering you.

Sign in to reply to this post

PatriceWebAssist

OK... retrieved from last night's back up. I have the Update page open and am looking at the code for the editor.

// The initial value to be displayed in the editor.
$CKEditor_initialValue = "".((isset($_GET["invalid"])?ValidatedField("2019pagecopyupdate","pc_content",false):"".$WADA2019pagecopy_update->getColumnVal("pc_content",false)."")) ."";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "2018";
$CKEditor_config["wa_preset_file"] = "2018.xml";
$CKEditor_config["width"] = "700px";
$CKEditor_config["height"] = "350px";
$CKEditor_config["docType"] = "<" ."!" ."DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
$CKEditor_config["contentsLanguage"] = "";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["toolbar"] = array(
array( 'Source','-','Save','NewPage','Preview','-','Templates'),
array( 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'),
array( 'Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
('/'),
array( 'Bold','Italic','Underline','Strike','-','Subscript','Superscript'),
array( 'NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array( 'Link','Unlink','Anchor'),
array( 'Table','HorizontalRule','SpecialChar','PageBreak'),
('/'),
array( 'Styles','Format'),
array( 'TextColor'),
array( 'Maximize','ShowBlocks','-','About'));
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["forcePasteAsPlainText"] = true;
$CKEditor->editor("pc_content", $CKEditor_initialValue, $CKEditor_config);

Sign in to reply to this post

PatriceWebAssist

Ah... this won't be the latest since I pulled last nights back up... have to redo again. I will need to dump the ck folder and reinstall.

Sign in to reply to this post

PatriceWebAssist

ok... now I am looking at this

// The initial value to be displayed in the editor.
$CKEditor_initialValue = "".((isset($_GET["invalid"])?ValidatedField("2019pagecopyupdate","pc_content",false):"".$WADA2019pagecopy_update->getColumnVal("pc_content",false)."")) ."";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "2018";
$CKEditor_config["wa_preset_file"] = "2018.xml";
$CKEditor_config["width"] = "514px";
$CKEditor_config["height"] = "350px";
$CKEditor_config["docType"] = "<" ."!" ."DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">";
$CKEditor_config["dialog_startupFocusTab"] = false;
$CKEditor_config["fullPage"] = false;
$CKEditor_config["tabSpaces"] = 4;
$CKEditor_config["toolbar"] = array(
array( 'Source','-','Save','NewPage','Preview','-','Templates'),
array( 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Print','SpellChecker','Scayt'),
array( 'Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
('/'),
array( 'Bold','Italic','Underline','Strike','-','Subscript','Superscript'),
array( 'NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array( 'Link','Unlink','Anchor'),
array( 'Table','HorizontalRule','SpecialChar','PageBreak'),
('/'),
array( 'Styles','Format'),
array( 'TextColor'),
array( 'Maximize','ShowBlocks','-','About'));
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["forcePasteAsPlainText"] = true;
$CKEditor->editor("pc_content", $CKEditor_initialValue, $CKEditor_config);

Sign in to reply to this post

PatriceWebAssist

A search on the updater page of

$RSname->getColumnVal("columnName",false)

didn't have any result.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you have it correct on the page:

$WADA2019pagecopy_update->getColumnVal("pc_content",false)

I'm wondering what version of webassist/mysqli/rsobj.php you have on your site. Maybe it needs to be updated? If you can give me FTP access and a URL with username/password so I can view the error then I'm sure I can find the right solution.

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

PatriceWebAssist

I just downloaded DA again and installed. I'll check on the other one before trying again.

Sign in to reply to this post
loading

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...