Ticket #496 (closed Bug: invalid)
editor fails to load content with <script> tags in "inline" mode, textarea replace OK
| Reported by: | Lloyd | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | FCKeditor 2.4.2 |
| Keywords: | Cc: |
Description
Starting the editor with properly-escaped starting "value" does not load content properly when editor is started in "inline" mode, while exactly the same content loads properly in "textarea replace" mode. The following example javascript load data should make the problem clear:
<script type="text/javascript">
var oFCKeditor = new FCKeditor('edited');
oFCKeditor.BasePath = "/FCKeditor/" ;
oFCKeditor.Config["CustomConfigurationsPath"] = "/myfckconfig.js" ;
oFCKeditor.Config["BaseHref"] = "http://fckwebedit.anemiaanswer.com/examples/" ;
oFCKeditor.Height = "100%" ;
oFCKeditor.Config["mytop"] = "None" ;
oFCKeditor.Config["mytail"] = "None";
oFCKeditor.Config["mypath"] = "./examples";
oFCKeditor.Config["mytitle"] = "";
oFCKeditor.Config["strict"] = "0";
oFCKeditor.Value = " <p>Standish and Co. (USA) CR Natural, S.A. (Costa Rica)</p> <script type=\"text/javascript\" language=\"javascript\"> <!-- var ANS_customer_id=\"066fc456-c071-48d3-aa1f-0542ead8f44b\";--></script> <p>See also:<br> <b><a href=\"questions-and-answers.htm\">Carao Questions and Answers<br></a></b></p> ";
oFCKeditor.Create();
</script>
Change History
Note: See
TracTickets for help on using
tickets.