:::

8-1 上課範例:class/ckeditor/config.js

CKEDITOR.editorConfig = function( config )
{
    config.toolbar = 'MyToolbar';
    config.toolbar_MyToolbar =
    [
       { name: 'clipboard', items : [ 'Undo','Redo' ] },
        { name: 'insert', items : [ 'Image' , 'Flash' , 'Table' , 'HorizontalRule' , 'Smiley' , 'PageBreak' ] },
        { name: 'basicstyles', items : [ 'Bold' , 'Italic' , 'Strike' , 'RemoveFormat' ] },
        { name: 'paragraph', items : [ 'NumberedList' , 'BulletedList' , 'Outdent' , 'Indent'] },
        { name: 'links', items : [ 'Link' , 'Unlink' ] },
        { name: 'styles', items : [ 'Styles' , 'Format' ] },
        { name: 'tools', items : [ 'Font' , 'FontSize' ] },
        { name: 'colors', items : [ 'TextColor','BGColor' ] }
    ];
    
    var kcpath='/~tad0616/modules/tad_note/class/ckeditor/kcfinder';
    config.filebrowserBrowseUrl = kcpath + '/browse.php?type=files';
    config.filebrowserImageBrowseUrl = kcpath + '/browse.php?type=images';
    config.filebrowserFlashBrowseUrl = kcpath + '/browse.php?type=flash';
    config.filebrowserUploadUrl = kcpath + '/upload.php?type=files';
    config.filebrowserImageUploadUrl = kcpath + '/upload.php?type=images';
    config.filebrowserFlashUploadUrl = kcpath + '/upload.php?type=flash';

};

:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D22%26tbdsn%3D612

書籍目錄

展開 | 闔起

線上使用者

59人線上 (36人在瀏覽線上書籍)

會員: 0

訪客: 59

更多…