Take the multi-page editor inherited from the formeditor class as an example.
Inherit from the save of formeditor Editor, where formediotr inherits from multipageeditorpart
In fact, it still needs to call the save of every page, as shown in figure
Public void dosave (iprogressmonitor Monitor ){
Tagpage. dosave (MONITOR
, note that the path to be started by root ===3 place ======================
Modify here to modify the Web-inf/style.xml file correspondence Modify here to modify ewebeditor.jsp file correspondence
Modify here to modify upload.jsp file correspondence
For example, to upload to the root directory under/upload/:
In upload.jsp
String suploadfilepath= "/upload/";
In Style.xml
In ewebeditor.jsp
String suploadfilepath= ".. /upload/"//Set File upload image display address in Ewebeditor
HTML page content prohibit selection, copy, right-clickJust in a look at a site source of the time to find, in fact, it is really simpleThe key isOncontextmenu= ' return false ' ondragstart= ' return false ' Onselectstart = ' return false ' onselect= ' Document.selection.empty () ' oncopy= ' document.selection.empty () ' onbeforecopy= ' return false ' onmouseup= ' Document.selection.empty () 'An easier way
sed (stream editor)
Function Description: Use script to process text files.Syntax: sed [-hnv][-eAdditional Note: SED can process and edit text files according to script instructions.Parameters:-e-f-h or--help display Help.-N or--quiet or--silent displays only the results of the script.
-V or--version display version information.SED working principle:
SED is a non-interactive flow editor. Non-interactive r
Modified code Downloads http://www.cnblogs.com/files/truly/fckeditor_truly.rar Local Download Address Due to the needs of the project, FCKeditor has been carefully studied recently. Find bugs and things that are missing. First, prevent continuous text from causing the scroll bar FCKeditor Editor to work with an IFRAME to handle editor content, but it does not support text wrapping. If you enter a con
'
});
CKEDITOR.dialog.add (' Insertcode ', This.path + ' dialogs/insertcode.js ');
}
});
2, add "Images" directory, put in a "code.jpg" picture, of course, the picture can be found from Google, 16*16 size of the good.
3, add "dialogs" directory, create a new "Insertcode.js", enter the following code:
Insertcode.js
Copy Code code as follows:
CKEDITOR.dialog.add (' Insertcode ', function (editor) {
var escape = function
This page editor was completed yesterday afternoon. The folder was compressed last night. This morning, everything in the folder was lost. The compressed file is empty. I felt dizzy in my head, and I lost my work yesterday. So I made up my mind to create a version library for myselfCodeUpload to the server. To avoid repeated tragedies.
In fact, there is nothing to say about the development
The following is the line to be called in HTML
Today we're going to talk about how the PHP tutorial calls code such as
Include (".. /editor/fckeditor.php ");
$ofckeditor = new FCKeditor (' Fckeditor1 ');$ofckeditor->basepath = '. /editor/';$ofckeditor->value = ";$ofckeditor->width = ' 100% ';$ofckeditor->height = ' 360 ';
How do I put multiple ueditor on the same page? The reference code is as follows:This will render 2 ueditor editors in the page.How does PHP get multiple ueditor values? Note that the above ueditorname_1,ueditorname_2 is the name value of the form, so the server-side PHP Gets the value of the Ueditor editor to be very simple, as the reference code reads as follows:$_post["Ueditorname_1"]; The value of the f
"Attachment" button to eject the dialog/fck_fujian.html page, 450,200 is wide, high).
and find
Case ' image ': b=new Fcktoolbarbutton (' image ', fcklang.insertimagelbl,fcklang.insertimage,null,false,true,37);
Add in front:
Case ' Fujian ': b=new Fcktoolbarbutton (' Fujian ', fcklang.fujian,null,null,false,true,77);
77 is the index of the icon to display on the toolbar for the attachment.
Icon files in: Editor
some of the code in other HTML files
1. Translation of the prompt information
This thing will not be said. It's simple. You can also search by the full text of the message ...
2. Change the sample text after the selected picture is Chinese
File in: Line 52nd
Fckeditor\editor\dialog\fck_image\fck_image_preview.html
3. Modify the file browser to increase the file preview (the effect is very rough)
Master of
To implement the multi-page editor function, eclipse provides the multipageeditorpart and formeditor editing classes that support multi-page editors. However, graphicaleditorwithflyoutpalette is currently used in the project, and therefore cannot be used, therefore, a clever method is used: the custom tab ctabfolder class of SWT supports multiple pages.Previous f
So whether you want to paste the content in the page editor, or upload pictures and other things that need pop-up window operation will have problems, want to do other operations can only refresh the page. The reason is that IE 9 does not support Var $=document.getelementbyid;
The solution can be done this way:
Open this file, Fckeditor/
First download the latest version from the FCKeditor official
The cloud-dwelling community offers download addresses http://www.jb51.net/codes/21294.html
Installation and Configuration methods:First, open folder found that there are many files for the ASP is not used; Delete unnecessary files in FCKEditor2.6.6: Unzip fckeditor_2.6.6.zip to your site root directory FCKeditor folder, with the folder _ Folders and files are deleted:1.fckeditor director
Log on directly to the background logon page using 'or' = 'or'. The fckeditor editor constructs a form upload. You already have the privilege to remove your pants.Proof of vulnerability:Http://www.nd56.com/fckeditor/editor/filemanager/connectors/aspx/connector.aspx? Command = CreateFolder Type = Media CurrentFolder = % 2F NewFolderName = 1.aspBackground http:/
Download the plugin and place the unpacked My_focus folder under the Kindeditor plug-in directory (kindeditor directory/plugins/) such as: H:\webprobject\yzj\kindeditor\plugins\my_ Focus\
In the page where you use the Kindeditor editor, load the plugin My_focus directory ke-plugins-myfocus.js files such as:
Copy Code code as follows:
Invoke Basic settings
Set Myfocuspath library file add
(Http://www.fckeditor.net, Javaeye's editor is also used fckeditor,xx like-minded?) hehe), it opensource (free Ah, can directly change the source code ah, hehe), powerful (almost a web version of Office Word), provides support for a variety of server-side (although it is completely a pure client, but currently provides with. NET, PHP, Java, Coldfusion, Perl, Lasso, Python, the tight integration of various server-side scripts, support internationalizat
The first method:
Copy Code code as follows:
Let IE9 become IE8 running
The second method:
After the upgrade to IE9, FCKeditor in the IE9 pop-up floating layer will be a bug, the contents will not appear. So whether you want to paste the content in the page editor, or upload pictures and other things that need pop-up window operation will have problems, want to do other operations can onl
Navigate to: Editor\filemanager\connectors\asp\io.asp
Mainly modify: Sanitizefilename This function, and add a method to get extension and file renaming, the detailed code is as follows:
Copy Code code as follows:
' Do a cleanup of the ' file name to avoid possible problems
function Sanitizefilename (snewfilename)
Dim Oregex
Dim Oext
Set Oregex = New RegExp
Oregex.global = True
if (configforcesingleextension = True) Then
Oregex.pa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.