FCKEDITOR online editor

xiaoxiao2021-04-05  294

I tried to flyditor, according to the online article summary: 1. Download fckeditor.java 2.3 (fckeditot for java) Fckeditor 2.2 (Fckeditor basic file)

2. Establish a project: Tomcat / WebApps / Testfckeditor.

3. Unzip FCKEDITOR2.2 and copy the entire directory fckeditor to the root of the project. The directory structure is: Tomcat / WebApps / Testfckeditor / Fckeditor and puts the fckeditor-2.3.zip (java) compression package / web / web- Two JAR files in the INF / LIB / directory are copied to the item / web-inf / lib / directory. Put the fckeditor.tld file under the src directory Copy to TestfcKedit / Fckeitor / Web-INF /

4. Merge the web.xml file under the / web / web-inf / directory in the FCKEDITOR-2.3.zip compression package into the web.xml file under the item / web-inf / directory.

5. Modify the merged web.xml file, change the enabled parameter value named SimpleUPloader to TRUE to allow uploading the function, and the CONNECTOR servlet's baseDir parameter value is used to set the location where the upload file is stored. Add label definition: / testfckeditor /web-inf/fcked>

Running map:

6. Map of two servlets in the above files are: / editor / filemanager / browser / default / connectors / jsp / connector and / editor / filemanager / upload / simpleuploader, you need to add / fcked in front of the two mappings, For / Fckeditor / Editor / FileManager / Browser / Default / Connectors / JSP / Connector and / Fckeditor / Editor / FileManager / Upload / SimpleUploader.

7. Enter the Skin folder if you want to use the fckeditor's default, then delete the other two folders except the Default folder.

8. Delete / fcKeditor / directory removes all files other than FCKCONFIG.JS, FCKEDITOR.JS, FCKSTYLES.XML, FCKSTYLES.XML four files / editor / _source, delete / editor / fileManager / browser / default / connectionrs / All files below / editor / fileManager / UPLOAD / UPTOR / LANG / Under except for fcklanguageManager.js, en.js, zh.js, zh-cn.js four files all files

9. Open /FCKeditor/fckconfig.js modified FCKConfig.DefaultLanguage = 'zh-cn'; replace the value FCKConfig.LinkBrowserURL such as the following: FCKConfig.LinkBrowserURL = FCKConfig.BasePath "filemanager / browser / default / browser.html ? Connector = connectors / jsp / connector "; FCKConfig.ImageBrowserURL = FCKConfig.BasePath "? filemanager / browser / default / browser.html Type = Image & Connector = connectors / jsp / connector "; FCKConfig.FlashBrowserURL = FCKConfig.BasePath " filemanager /browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector "; FCKConfig.LinkUploadURL = FCKConfig.BasePath '? filemanager / upload / simpleuploader Type = File'; FCKConfig.FlashUploadURL = FCKConfig.BasePath 'filemanager / UPLOAD / SIMPLEUPLOADER? TYPE = Flash '; flash'; fckconfig.ImageUploadURL = fckconfig.basepath 'fileManager / upload / simpleUPloader? type = image';

10. Other FCKCONFIG.JS total configuration files, available recorded this open and modify the file as a UTF-8 encoding format. turn up:

FCKCONFIG.TABSPACES = 0; change to fckconfig.tabspaces = 1; that is, the Tab key can be used in the editor domain.

If your editor is still in front desk at the website, for example, when you use it for a message or a diary reply, then you have to consider safe, don't use the default Toolbar in the front desk, or customize the function, or Basic that uses the system has defined, which is basic Toolbar, find: fckconfig.toolbarsets ["Basic"] = [['bold', 'italic', '-', 'OrderedList', 'unorderedList', '-' , / * 'Link', * / 'unlink', ',', 'textcolor', 'bgcolor', '-', 'smiley', 'specialchar', 'replace', ' Preview ']]; This is the changed BASIC, remove the image function, remove the added link function, because the image and links and flash and image buttons add functions to access and upload files directly, FCKEditor also supports editing domains Right click on the mouse. FCKCONFIG.CONTEXTMENU = ['Generic', / * 'link', * / 'anchor', / * 'image', * / 'flash', 'select', 'Textarea', 'Checkbox', 'Radio', ' Textfield ',' hiddenfield ', / *' imagebutton ', * /' button ',' bulletedList ',' numberedlist ',' Tablecell ',' Table ',' form '; this is also the right to right-click "link" , Images, flash, image buttons feature are removed. Found: fckconfig.fontnames = 'arial; comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana'; plus several common font fckconfig.fontnames = 'Song; black body; 书; 体 _GB2312; arial; COMIC SANS MS; Courier New; TAHOMA; TIMES New Roman; Verdana ';

7. Add file /Testfckeditor/test.jsp :<%@Page language = "java" import = "com.fredck.fckeditor. *"%> <% @ Taglib URI = "/ testfckeditor" prefix = "fck"%>