Advanced HTML Editor 3 Support Product Page
HTML5 is blanking out the editor in IE 9
Asked 05 Jul 2012 17:45:46
1
has this question
05 Jul 2012 17:45:46 Chuck Borrelli posted:
When working in IE9, the editor is blanking out the form field when saving.At first I thought this was only under but it also occurs under as well.
I was chatting with Teodor today, and incorrectly stated this was an HTTPS only issue. It is not.
This is a very serious issue, since a user not fully briefed on this issue could wipe out an entire page.
I am applying this to a Template, which I have done before...
<?php require_once('../Connections/dynamicsights.php'); ?> <?php $pageName=$_SERVER['PHP_SELF']; ?> <?php session_start(); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "pageForm")) { $updateSQL = sprintf("UPDATE pageEdits SET pgTitle=%s, docTitle=%s, pgBody=%s WHERE id=%s", GetSQLValueString($_POST['pgTitle'], "text"), GetSQLValueString($_POST['docTitle'], "text"), GetSQLValueString($_POST['pgBody'], "text"), GetSQLValueString($_POST['id'], "int")); mysql_select_db($database_dynamicsights, $dynamicsights); $Result1 = mysql_query($updateSQL, $dynamicsights) or die(mysql_error()); $updateGoTo = $pageName; if (isset($_SERVER['QUERY_STRING'])) { $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?"; $updateGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $updateGoTo)); } $pn_PageInfo_rs = "/about.php"; if (isset($pageName)) { $pn_PageInfo_rs = $pageName; } mysql_select_db($database_dynamicsights, $dynamicsights); $query_PageInfo_rs = sprintf("SELECT * FROM pageEdits WHERE page=%s", GetSQLValueString($pn_PageInfo_rs, "text")); $PageInfo_rs = mysql_query($query_PageInfo_rs, $dynamicsights) or die(mysql_error()); $row_PageInfo_rs = mysql_fetch_assoc($PageInfo_rs); $totalRows_PageInfo_rs = mysql_num_rows($PageInfo_rs); ?> <!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=UTF-8" /> <title><?php echo $row_PageInfo_rs['docTitle']; ?></title> <link rel="icon" href="../favicon.ico" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="../Styles/dmxEditor.css" /> <link rel="stylesheet" type="text/css" href="../styles/dmxEditor/gold/gold.css" /> <script type="text/javascript" src="../ScriptLibrary/jquery-latest.pack.js"></script> <script type="text/javascript" src="../ScriptLibrary/dmxEditor.min.js"></script> <script type="text/javascript" src="../ScriptLibrary/require.js"></script> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <link href="../ioc.css" rel="stylesheet" type="text/css" /> <!-- TemplateParam name="OptionalRegion1" type="boolean" value="true" --> <!-- TemplateParam name="mainContent" type="boolean" value="true" --> </head> <body> <div align="center"> <div id="wrapper"> <div id="banner"> <h2> Improving Outcomes for Children</h2> <div id="quote"> There can be no keener revelation of a society's soul than the way in which it treats its children. <span id="quoteBy">--Nelson Mandela</span> </div> <img src="../images/dhslogo.png" width="259" height="125" alt="DHS Logo" /> </div> <div id="menuRow"> <div id="navcontainer"> <ul id="navlist"> <li><a href="../index.php" title="Home">Home</a></li> <li><a href="../whatis.php" title="What is IOC">What is IOC</a></li> <li><a href="../development.php" title="Development">Development of IOC</a></li> <li><a href="../implement.php" title="Implementation">IOC Implementation</a></li> <li><a href="../practice.php" title="practice">Practice Model</a></li> <li><a href="../cua.php" title="CUA">CUA's</a></li> </ul> </div> </div> <div id="bodyContent"> <div id="pageTitle"><?php echo $row_PageInfo_rs['pgTitle']; ?></div> <!-- TemplateBeginIf cond="_document['mainContent']" --><!-- TemplateBeginEditable name="EditRegion2" -->mainContent<!-- TemplateEndEditable --><!-- TemplateEndIf --> <p><?php echo $row_PageInfo_rs['pgBody']; ?></p> <?php if (isset($_SESSION['MM_Username'])) { // Adv Conditional Region ?> <p>----------------------------------------------------</p> <p> <p> <form id="pageForm" name="pageForm" method="POST" action="<?php echo $editFormAction; ?>"> <p><label for="docTitle">Document Title (appears at top of Window and Search Engines)</label> <input name="id" type="hidden" id="id" value="<?php echo $row_PageInfo_rs['id']; ?>" /> <br/> <input name="docTitle" type="text" id="docTitle" value="<?php echo $row_PageInfo_rs['docTitle']; ?>" size="100" maxlength="120" /></p> <p><label for="pgTitle">Page Title (appears above)</label> <br/> <input name="pgTitle" type="text" id="pgTitle" value="<?php echo $row_PageInfo_rs['pgTitle']; ?>" size="100" maxlength="120" /></p> <textarea id="pgBody" name="pgBody" class="dmxEditor gold" style="width:800px;height:400px"><?php echo $row_PageInfo_rs['pgBody']; ?></textarea> <script type="text/javascript"> // <![CDATA[ jQuery(document).ready( function() { jQuery("#pgBody").dmxEditor( {"FileManager": {"path": "files", "allowUpload": true, "allowCreate": true, "allowRename": true, "allowDelete": true}, "width": 800, "height": 400, "allowUpload": true, "uploadPath": "files", "uploadProcessor": "php", "allowResize": true, "resizeMaxWidth": 500, "resizeMaxHeight": 800, "includeCss": "ioc.css", "skin": "gold", "extensions": ["FileManager", "path_browser", "resizer"]} ); } ); // ]]> </script> <input type="hidden" name="MM_update" value="pageForm" /><br/><br/> <input name="Submit" type="submit" value="Submit" /> <input type="reset" name="Reset" id="button" value="Reset" /> </form> </p> <?php }//end if Session ?> </div> </div> </div> </body> </html> <?php mysql_free_result($PageInfo_rs); ?>
Replies
Replied 06 Jul 2012 06:44:08
06 Jul 2012 06:44:08 Teodor Kuduschiev replied:
Hello Chuck,
We just tested the HTML Editor in IE9 and i created a form that updates record and no such an issue here, you can try yourself: 79.124.72.94:8080/cake/index.php?id=1
Please try applying the editor on a simple blank page that updates your database and tell me if the problem exist there.
We just tested the HTML Editor in IE9 and i created a form that updates record and no such an issue here, you can try yourself: 79.124.72.94:8080/cake/index.php?id=1
Please try applying the editor on a simple blank page that updates your database and tell me if the problem exist there.
Replied 06 Jul 2012 12:42:21
06 Jul 2012 12:42:21 Chuck Borrelli replied:
The only differences I can see is that the extensions were added to the .dwt file (including all of the data access), not the page level.
I will test further this weekend
I will test further this weekend