Discuz in progress! Nt, no one has done it now?
A bug suddenly came up last week and killed me. The Forum images could not be uploaded, And the uploading card was stuck at 100%. So I found that when ajax was sent to AttachUpload. cs, querystring had no userid.
Then code
At first, I thought that AttachUploadPage inherits PageBase, And there is userid in PageBase. AttachUploadPage should be able to get the userid of the currently uploaded image. Ho
/**
* Replace the image in Fckedit to add a domain name
* @param string $content What to replace
* @param the name of the image to be added to the string $STRURL content
* @return String
* @eg
*/
function Replacepicurl ($content = null, $STRURL = null) {
if ($STRURL) {
Extracts the regular expression of the src of the image path and deposits the result in $matche
Using the Ueditor Editor, the attachment defaults to ueditor/php/upload/, my attachment address is/data/upload/under the site root directory, and needs to be modified Ueditor as follows:
The first step: Open php/config.php Modify the picture directory
The code is as follows
Copy Code
Return Array (Picture Catalogue' Imagesavepath ' => Array ('.. /.. /.. /.. /data/upload '));
Step two: Picture upload and remove
note, the default upload file is saved in the root directory of uploads, if you want to change the file save directory, modify the configuration item uploaddir can, and you need to modify the Uploadurl to ensure that the image is accessible. 3, if your view is Activefield type, the following configuration applies to you
But if your form is not built with Yii's own build, you should configure it as follows
4, which upload class with a redactor s
Baidu Editor (baidu. editor), Editor baidu. editor
The editor is usually used in some forums or blog websites. Now I will explain how to generate the editor using Jquery on the page.
1. Page code:
Introduce relevant JS files:
How to Use quill-editor with style editor in the Vue project, vuequill-editor
By default, vue-quill-editor inserts an image directly into base64 and then into the content. If the image is large, the rich text content will be large
The first step: Download all the files required by Ueditor
The Jsp-utf-8 version is used here
Download Link: http://ueditor.baidu.com/website/download.html
Step two: Unzip the download file to the Project Web directory
Step three: Copy the five jar packages under the/jsp/lib directory under the folder to the Web-inf/lib in the project and add them to the project structure
Fourth Step: Modify Ueditor.config.js
The var URL = window. Ueditor_home_url | | Getuebasepath ();
Modify to var URL = "/proj
Why do I need to make a Rich Text editor [wangEditor5 months summary], editor Text editor1. Why the rich text box?
When it comes to the web Rich Text Editor, many people are impressed by a search on the Internet, so they can throw a brick. Yes, I did search for it, but I really want you to give it a name. How many can you say? -- Probably not much? I don't need t
Microsoft open-source editor monaco-editor and Microsoft open-source editor
Official Website: "The Monaco Editor is the code editor that powers VS Code. A good page describing the code editor's features is here.
It is licensed under the MIT License and supports IE 9/10/11
1.1. An overview of the online visual HTML editor
One of the most common behaviors in Web applications is the release and exchange of information and speech. In the information release at the same time, there will be information on the release of the format, type and functional requirements, such as: bold, underline and so on, so that the text information can be more beautiful image conveyed to the reader,
You can put FCKeditor into any folder, by default, putting it into the FCKeditor folder is the easiest way to do it. If you put the folder in a different name, modify the editor BasePath parameters in the configuration folder as follows:
Ofckeditor.basepath= "/components/fckeditor/";
In addition, all folders and files in the FCKeditor folder that begin with an underscore are optional and can be safely removed from your publication. They are not requi
The use of a few, plus a period of time useless, so it will be more superficial.Vim: Classmates recommend, say, use a bit, but before using really need to learn how to use, very novel, Http://baike.sogou.com/v6545897.htm?fromTitle=VIM, Skilled, write code can not touch the mouse, and soon , but the default skin is not good-looking, with the ESC key mode conversion Some awkward, vim editor is open source software, hehe.Sublime: I do not know where to s
Let's talk about my test environment: xpsp2,iis5.1,fckeditor2.0
To create a new site on IIS, I'll just name it fckeditor.
Create a corresponding site in DW, test server is native, support VBScript
Download FCKeditor2.0, this thing is open source, the Internet can down to a lot of places to find their own ...
Download should be compressed package, extract to the FCKeditor site root directory, nothing need to change, directly can begin to call. When you do, you'll find it easy to die!
Under the si
Upload directory please set in fckeditoreditorfilemanagerconnectorsaspconfig.asp
Dim ConfiguserfilespathConfiguserfilespath = "/userfiles/"
Chinese Configuration Description:Because the download down the package contains a lot of in our use, do not use, do not delete the line. Look at a person like the following PHP as an example, the process of slimming
Delete all files and folders that start with "_"Delete the FCKeditor directory:Fckeditor.afpFckeditor.asp PhpchinaFckeditor.cfcFckeditor.cfm
1. AIE (Demo address)
AIE is an open-source Ajax Image editor, based on ExtJS and PHP ImageMagick development, easy to integrate with other applications such as blogs/albums. Provides the ability to resize pictures, crop pictures, rotate/flip pictures, apply filters, add text, add watermarks, and more.
2. Markitup (Demo address)
Markitup is a lightweight, customizable, flexible WYSIWYG
How does the online rich text editor work? Can I write an editor for PHP-oriented process knowledge? I just got familiar with object orientation. Only one database class has been written.
Will write an article management system, classification management system ....
Make a website and ask users to post articles.
I will call kindeditor to display the format, expression, and
The first time you do enterprise-class applications, feel a little: the logic must be very clear, and have a lot of different concepts.
In the Baidu editor, how to complete the value from the server, to render the table? Here we need to console.log (editor), and the official API has told us that the way to write is SetContent (), where we can simply pass in the string that we finally spelled, that we can dr
, the key or understanding their development ideas, it must be a professional front end is very simple, but I am not a professional front end, so it took a little time, the following to see the solution and the problem itself.First look at the specific bug situation:After inserting the address into the video, it is normal to display it in the inserted video.However, after inserting, the video does not have a normal preview, because it is not the video code in the Insert
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.