Nick,
This is media selector. You need to replace insertmedia with insertflash.
- <Script Language="javascript">
- function callInsertImage()
- {
- var editor1 = document.getElementById('CE_Editor1_ID');
- editor1.FocusDocument();
- var editdoc = editor1.GetDocument();
- editor1.ExecCommand('new');
- editor1.ExecCommand('InsertFlash');
- InputURL();
- }
-
- function InputURL()
- {
- var editor1 = document.getElementById('CE_Editor1_ID');
- var editdoc = editor1.GetDocument();
- var imgs = editdoc.images;
- if(editor1.getHTML()!="")
- {
- var s = editor1.getHTML();
- s=s.replace(/(<object[^\>]*>[\s|\S]*?)(<embed[^\>]*?)(\ssrc=\s*)\s*("|')(.+?)\4([^>]*)(.*<\/embed>)[\s|\S]*?<\/object>/gi,"$5");
- document.getElementById("imageFld").value = s;
- editor1.ExecCommand('new');
- document.getElementById("imageFld").focus();
- }
- else
- {
- setTimeout(InputURL,500);
- }
- }
- </script>
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx