5. Configure ckeditor
Modify ckeditor \ config. js as follows:
Ckeditor. editorconfig = function (config) {var ckpath = '. '; // the path of the ckeditor folder. It is used to set config for the following six ckfinder paths. filebrowserbrowseurl = ckpath + '/ckfinder/ckfinder.html'; // view path of the uploaded file config. filebrowserimagebrowseurl = ckpath + '/ckfinder/ckfinder.html? Type = images '; // The Image Upload path config. filebrowserflashbrowseurl = ckpath +'/ckfinder/ckfinder.html? Type = flash '; // upload the flash viewing path config. filebrowseruploadurl = ckpath +'/ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = files '; // save path of the uploaded file config. filebrowserimageuploadurl = ckpath +'/ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = images '; // Save the Image Upload path config. filebrowserflashuploadurl = ckpath +'/ckfinder/CORE/connector/aspx/connector. aspx? Command = quickupload & type = flash '; // upload the flash storage path // define changes to default configuration here. for example: config. language = 'zh-cn'; // configuration language // config. uicolor = '# fff'; // background color // config. width = 400; // width // config. height = 400; // height config. skin = 'v2'; // editor style // cancel the "drag to change size" function config. resize_enabled = false; // basic toolbar // config. toolbar = "Basic"; // All-Around toolbar // config. toolbar = "full"; // customize the toolbar config. toolbar = [['source', '-', 'preview'], ['cut ', 'copy', 'paste', 'pastetext ', 'pastefromword'], ['undo ', 'redo', '-', 'Find ', 'replace', '-', 'selectall', 'removeformat'], ['numberedlist ', 'bulletedlist', '-', 'outdent ', 'indent', 'blockquote', 'showblok'], '/', ['bold ', 'italic ', 'underline', 'strike', '-', 'subscript', 'superscript'], ['justifyleft', 'justifycenter', 'justifyright', 'justifyblock'], ['link', 'unlink', 'anchor '], ['image', 'flash', 'table', 'horizontalrule', 'specialchar'],'/', ['styles ', 'format', 'font', 'fontsize'], ['textcolor', 'bgcolor'], ['maxilize ','-', 'about']; // ckfinder. setupckeditor (null, '/ckfinder /');};
You can modify attributes such as the toolbar as needed.