Hello.
We're using the RadEditor with a custom button that embeds the following markup in the HTML viewer:
The insert works fine. However, after inserting, when you select the HTML view, it looks like it tries to execute the script tags in the code that we embedded... it fails because it cannot find the externally referenced js file that defines the swfobject which in turn leaves that variable set to null. Including the external JS file that houses the script on the page that the editor is on makes no difference, nor does embedding the external reference in the html content above. The quircky part of this, is that if you LOAD the editor with this code already inserted, and switch to the HTML view, the issue does not occur... it's only when adding it to an existing editor. I hope this makes sense.
We need to be able to use the script tags in this code. We have AllowScripts and EnableEmbeddedScripts both set to true, with again no impact on this issue. This is using Q1 controls, with the latest SP, windows vista .net 3.5.
Is there a way to stop the editor from trying to execute the script when swithing into the HTML view?
Thanks,
Marty
We're using the RadEditor with a custom button that embeds the following markup in the HTML viewer:
| <div id="mg_001"> |
| <script type="text/javascript">swfobject.embedSWF("/upload/mediagallery/viewers/slideshow.swf", "mg_001", "452", "327", "8.0.0", "/upload/flash/expressInstall.swf", { gallery: "10", album: "1", item: "2"}, { menu: "false", wmode: "transparent" }, {});</script> |
| </div> |
The insert works fine. However, after inserting, when you select the HTML view, it looks like it tries to execute the script tags in the code that we embedded... it fails because it cannot find the externally referenced js file that defines the swfobject which in turn leaves that variable set to null. Including the external JS file that houses the script on the page that the editor is on makes no difference, nor does embedding the external reference in the html content above. The quircky part of this, is that if you LOAD the editor with this code already inserted, and switch to the HTML view, the issue does not occur... it's only when adding it to an existing editor. I hope this makes sense.
We need to be able to use the script tags in this code. We have AllowScripts and EnableEmbeddedScripts both set to true, with again no impact on this issue. This is using Q1 controls, with the latest SP, windows vista .net 3.5.
Is there a way to stop the editor from trying to execute the script when swithing into the HTML view?
Thanks,
Marty