Hi Eric
Sorry for my delay in replying - been trying to do other things with the site!
Lines on all page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
-----------
Getting really weird results now! Text inserts and updates fine. If I insert a picture, the insert is OK, but if I try to update it, the picture is removed and the code has been altered.
The same thing happens if I try to out a Google Map on the page. It goes in OK and is stored in the database, but when I try to update the page I get '"' replacing lots of the code in the editor field.
The code for the field is:
<td colspan="2"><?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("PgDetails", "HTMLEditor/", "100%", "500px", "Custom", "../custom/pages_Update_PgDetails1.js", "".(str_replace('"', '"', $row_WADApages['PgDetails'])) ."");
?></td>
The /pages_update_OgDetails1.js file is:
// Custom configuration for iRite
FCKConfig.XMLFullName = 'NoUpload';
FCKConfig.XMLFileName = 'NoUpload.xml';
FCKConfig.SkinPath = 'skins/silver/'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.DocType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
FCKConfig.AutoDetectLanguage = true;
FCKConfig.DefaultLanguage = 'default';
FCKConfig.StartupFocus = false;
FCKConfig.FullPage = false;
FCKConfig.BaseHref = '';
FCKConfig.DefaultLinkTarget = '_self';
FCKConfig.ToolbarSets["Custom"] = [ ['Source'], ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], '/', ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], ['OrderedList','UnorderedList','-','Outdent','Indent'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], ['Link','Unlink','Anchor'], ['Table','Rule','SpecialChar'], '/', ['Style','FontFormat','FontName','FontSize'], ['TextColor','BGColor'], ['FitWindow']]; /* Toolbar end */
FCKConfig.ForceStrongEm = false;
FCKConfig.FormatIndentator = ' ';
FCKConfig.EnterMode = 'p';
FCKConfig.FillEmptyBlocks = false;
FCKConfig.FormatOutput = false;
FCKConfig.FormatSource = false;
FCKConfig.IncludeGreekEntities = false;
FCKConfig.IncludeLatinEntities = false;
FCKConfig.ProcessHTMLEntities = false;
FCKConfig.ProcessNumericEntities = false;
FCKConfig.AdditionalNumericEntities = '';
FCKConfig.ForcePasteAsPlainText = false;
FCKConfig.CleanWordKeepsStructure = false;
FCKConfig.EditorAreaCSS = '../../css/my_styles.css'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.BodyClass = 'featuredLeft';
FCKConfig.StylesXmlPath = ''; // relative to fckeditor/editor/fckeditor.html
FCKConfig.ManagerEnabled = false;
if (false) {FCKConfig.Plugins.Add('kfm');}
Your help is much appreciated.
Chris