I get an error when I do this.
<script>; oEditor.FCKUndo.SaveUndoStep(); FCK.InsertHtml('<div align="center">We'll all win here..........'); window.parent.Cancel(); </script>;
Notice the single quote in We'll
How do I deal with that
I tried the following with no luck
sb = new StringBuilder();
sb.Append(" <script>; ");
sb.Append(" oEditor.FCKUndo.SaveUndoStep();");
sb.Append(" FCK.InsertHtml('" + sb1.Replace("'", "''") + "');");
sb.Append(" window.parent.Cancel();");
sb.Append(" </script>; ");
<script>; oEditor.FCKUndo.SaveUndoStep(); FCK.InsertHtml('<div align="center">We'll all win here..........'); window.parent.Cancel(); </script>;
Notice the single quote in We'll
How do I deal with that
I tried the following with no luck
sb = new StringBuilder();
sb.Append(" <script>; ");
sb.Append(" oEditor.FCKUndo.SaveUndoStep();");
sb.Append(" FCK.InsertHtml('" + sb1.Replace("'", "''") + "');");
sb.Append(" window.parent.Cancel();");
sb.Append(" </script>; ");
Re: trying to send a single quote back to the editor
Re: trying to send a single quote back to the editor
try to replace the call to FCK.InsertHtml with window.alert and you'll get the same error.