Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I spent a while trying to figure this one out and here is what I did. I've broken it down very simply as that is what I needed.</p> <p>Directly below your ckeditor text area, enter the upload file like this >>>></p> <pre><code>&lt;form action="welcomeeditupload.asp" method="post" name="deletechecked"&gt; &lt;div align="center"&gt; &lt;br /&gt; &lt;br /&gt; &lt;label&gt;&lt;/label&gt; &lt;textarea class="ckeditor" cols="80" id="editor1" name="editor1" rows="10"&gt;&lt;%=(rslegschedule.Fields.Item("welcomevar").Value)%&gt;&lt;/textarea&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ CKEDITOR.replace( 'editor1', { filebrowserUploadUrl : 'updateimagedone.asp' }); //]]&gt; &lt;/script&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;input type="submit" value="Update"&gt; &lt;/div&gt; &lt;/form&gt; </code></pre> <p>'and then add your upload file, here is mine which is written in ASP. If you're using PHP, etc. simply replace the ASP with your upload script but make sure the page outputs the same thing.</p> <pre><code>&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt; &lt;% if Request("CKEditorFuncNum")=1 then Set Upload = Server.CreateObject("Persits.Upload") Upload.OverwriteFiles = False Upload.SetMaxSize 5000000, True Upload.CodePage = 65001 On Error Resume Next Upload.Save "d:\hosting\belaullach\senate\legislation" Dim picture For Each File in Upload.Files Ext = UCase(Right(File.Path, 3)) If Ext &lt;&gt; "JPG" Then If Ext &lt;&gt; "BMP" Then Response.Write "File " &amp; File.Path &amp; " is not a .jpg or .bmp file." &amp; "&lt;BR&gt;" Response.write "You can only upload .jpg or .bmp files." &amp; "&lt;BR&gt;" &amp; "&lt;BR&gt;" End if Else File.SaveAs Server.MapPath(("/senate/legislation") &amp; "/" &amp; File.fileName) f1=File.fileName End If Next End if fnm="/senate/legislation/"&amp;f1 imgop = "&lt;html&gt;&lt;body&gt;&lt;script type=""text/javascript""&gt;window.parent.CKEDITOR.tools.callFunction('1','"&amp;fnm&amp;"');&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;;" 'imgop="callFunction('1','"&amp;fnm&amp;"',"");" Response.write imgop %&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload