CKEditor, Image Upload (filebrowserUploadUrl)

前端 未结 12 1485
误落风尘
误落风尘 2020-12-04 13:09

I\'m using CKEditor and would like to be able to allow users to upload and embed images in the Text Editor...

The following JS is what loads the CKEditor:

         


        
12条回答
  •  青春惊慌失措
    2020-12-04 13:47

    New CKeditor doesn't have file manager included (CKFinder is payable). You can integrate free filemanager that is good looking and easy to implement in CKeditor.

    http://labs.corefive.com/2009/10/30/an-open-file-manager-for-ckeditor-3-0/

    You dowload it, copy it to your project. All instructions are there but you basically just put path to added filemanager index.html page in your code.

    CKEDITOR.replace( 'meeting_notes',
    {
    startupFocus : true,
    toolbar :
    [
    ['ajaxsave'],
    ['Bold', 'Italic', 'Underline', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ],
    ['Cut','Copy','Paste','PasteText'],
    ['Undo','Redo','-','RemoveFormat'],
    ['TextColor','BGColor'],
    ['Maximize', 'Image']
    ],
    filebrowserUploadUrl : '/filemanager/index.html' // you must write path to filemanager where you have copied it.
    });    
    

    Most languages are supported (php, asp, MVC && aspx - ashx,...)).

提交回复
热议问题