close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Editor encapsulating all form fields in Content Area

Thread began 9/23/2011 8:49 am by david390068 | Last modified 9/28/2011 2:21 pm by david390068 | 1369 views | 5 replies |

david390068Beta Tester

Editor encapsulating all form fields in Content Area

I am using PowerStore 4.5 and have added some additional admin pages for updating other content using the admin template. The attached screen shots demonstrate my issue. Everything works great in Firefox, Chrome, Safari. Form updates, inserts, etc. However in IE 7, the editor grabs all of the form fields (before and after) and puts them inside of the editor. Any ideas?

Here is the code for the body:

<div class="WADAUpdateContainer">
<?php if ($totalRows_WADAgeneral > 0) { // Show if recordset not empty ?>
<form action="general_Update.php?generalid=<?php echo(rawurlencode($row_WADAgeneral['generalid'])); ?>" method="post" name="WADAUpdateForm" id="WADAUpdateForm">
<div class="WADAHeader">Updating General Content</div>
<div class="WADAHorizLine"><img src="../../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th class="WADADataTableHeader"><span class="WADADataTableCell">
<input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo(str_replace('"', '&quot;', $row_WADAgeneral['generalid'])); ?>">
<input name="name" type="hidden" id="name" value="<?php echo(str_replace('"', '&quot;', $row_WADAgeneral['name'])); ?>">
</span>Content Name:</th>
<td class="WADADataTableCell"><?php echo $row_WADAgeneral['name']; ?></td>
</tr>
<tr>
<td valign="top" class="WADADataTableHeader">Details:</td>
<td class="WADADataTableCell"><?php
// The initial value to be displayed in the editor.
$CKEditor_initialValue = "".$row_WADAgeneral['content']."";
$CKEditor = new CKEditor();
$CKEditor->basePath = "../../webassist/ckeditor/";
$CKEditor_config = array();
$CKEditor_config["wa_preset_name"] = "Advanced Manager Enabled (custom)";
$CKEditor_config["wa_preset_file"] = "(custom)";
$CKEditor_config["width"] = "700px";
$CKEditor_config["height"] = "200px";
$CKEditor_config["skin"] = "kama";
$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["filebrowserBrowseUrl"] = "../../webassist/kfm/index.php?uicolor=".urlencode(isset($CKEditor_config["uiColor"])?str_replace("#","#",$CKEditor_config["uiColor"]):"#eee")."&theme=webassist_v2&startup_folder=cms_files";
$CKEditor_config["toolbar"] = array(
array( 'Source','-','Preview'),
array( 'Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker'),
array( 'Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array( 'Image','Flash','Table','HorizontalRule','Smiley', 'SpecialChar','PageBreak'),
('/'),
array( 'Bold','Italic','Underline','Strike','-','Subscript','Superscript'),
array( 'NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array( 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array( 'Link','Unlink','Anchor'),
('/'),
array( 'Format','Font','FontSize'),
array( 'TextColor','BGColor'),
array( 'Maximize','ShowBlocks','-','Gallery'));
$CKEditor_config["scayt_autoStartup"] = true;
$CKEditor_config["contentsLangDirection"] = "ltr";
$CKEditor_config["entities"] = false;
$CKEditor_config["pasteFromWordRemoveFontStyles"] = false;
$CKEditor_config["pasteFromWordRemoveStyles"] = false;
$CKEditor_config["contentsCss"] = array("../../webassist/themes/". ($WAGLOBAL_Page_Theme) ."/css/configurable.css");
$CKEditor_config["bodyClass"] = "ps_pod1";
$CKEditor->editor("Content", $CKEditor_initialValue, $CKEditor_config);
?></td>
</tr>
</table>
<p>&nbsp;</p>
<div class="WADAHorizLine"><img src="../../WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
<div class="WADAButtonRow">
<table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="WADADataNavButtonCell" nowrap="nowrap"><input type="Submit" name="Update" id="Update" value="Update"></td>
<td class="WADADataNavButtonCell" nowrap="nowrap"><span id="Cancel" class="WADATextButton"><a href="general_Results.php">Cancel</a></span></td>
</tr>
</table>
<input name="WADAUpdateRecordID" type="hidden" id="WADAUpdateRecordID" value="<?php echo(rawurlencode($row_WADAgeneral['generalid'])); ?>">
</div>
</form>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_WADAgeneral == 0) { // Show if recordset empty ?>
<div class="WADANoResults">
<div class="WADANoResultsMessage">No record found.</div>
</div>
<?php } // Show if recordset empty ?>
</div>

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the php page in a zip archive so I can see the entire page code in context.

Sign in to reply to this post

david390068Beta Tester

Here you go.

Attached Files
update.zip
Sign in to reply to this post

david390068Beta Tester

Any Update

Just checking to see if you required any further documentation from me in figuring out this error.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

david390068Beta Tester

Hi Jason. Thanks. I have not heard from anyone as of yet.

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