Brief Introduction
Ueditor is developed by the Baidu Web front-end research and development of the Rich Text Web editor, with lightweight, customizable, user experience and other characteristics, open source based on the MIT protocol, allowing the free use and modification of code.
Download Ueditor
Website Download: http://ueditor.baidu.com/website/download.html
Extract the downloaded files into the thinkphp project, this article is extracted to the
First, PHP calls the FCKeditor method.
Second, JS call FCKeditor method.
Copy CodeThe code is as follows:
Require_once (Path_pre.) Fckeditor.php "); Contains the FCKeditor class,
$oFCKeditor = new FCKeditor (' content '); Create a FCKeditor object with the name of the form as content
$oFCKeditor->basepath= ". /fckeditor/"; The directory where the editor resides
$oFCKeditor->toolbarset= "Yiyunnet"; The Defa
Ask the Editor ckeditor to enable the upload of the upload. php file. After I use the ckeditor to enable the image upload mode, the php source code for image uploading is as follows, but the following error is always prompted during the upload:
Please indicate the cause of the error:
The source code is as follows:
/*
CKEditor_upload.php
Monkee
*/
$ Conf
Preparatory work:
1. Download the latest version of Ueditor from the Ueditor website, now the latest version is ueditor1_4_3-utf8-php, please download the PHP version.
2. We replace the News module editor, that is, press module, please ensure that news/admin/below, news_conadd.php,news_conmod.php, has cracked the source code, if not, please own Baidu!
Start:
December 11, 2016 08:46:59 SundayBaidu's short version of the Rich text editor Umeditor has not been updated for a long timeFull-featured version of the configuration items with Umeditor or there is a difference, here is how ueditor to receive the project, the main description of how to use the image uploadHtml:1 //Hosting Editor23 4 5 //Load JS68 9Note: line 16th, to write your PHP code to access the link,
1,/ckeditor/config.js, configuration file, if you do not want to write too much, you can directly write the default configuration (language, menu bar, width), there is a need to be able to configure Baidu config
config.language = ' en '; config.skin = ' v2 '; config.uicolor = ' #AADC6E '; config.toolbar = ' Basic ';
2, the official demo mostly like to use JS Configuration Editor area, the habit of writing PHP
Find a useful php ewebeditor editor
A bunch of useless online.
------Solution--------------------
Try CKEditor.
------Solution--------------------
Always use Kindeditor to force ... Can be batch upload, and compatible with each browser.
And most importantly, there are separate invocation instances:
http://kindeditor.net/demo.php
At the bottom there is a separate calling component.
Originally like th
When using the Kindeditor editor, use JS click submit Form PHP can not get the corresponding editor content
The code you need to add is:
[JavaScript] view plain copy kindeditor.ready (function (K) {editor = k.create (' #editor ', {RE sizetype:0, Allowimageremote:false, Width
What editor does php use? I started to use dw, but it was slow to start, and it consumed a lot of resources, directly listen to the fan call. I used sublime. Now I want to know what plug-ins need to be installed, that is, when writing php, the error will be prompted ------ solution -------------------- Zend nbsp; what editor
CKEditor is a rich text editor used in many development processes. How to use it in the CI framework? This section describes how to use CKEditor in CI. The version is relatively low and fckeditor2.6.6 is used in CI1.7.3. For your reference. 1. Put the fckeditor Directory into CI_PATH/system/plugins/
2. Add the following to CI_PATH/system/application/config. php:
$ Config ['fckeditor _ basepath'] = "/system
Target: I want to make a PHP editor with preview (and can easily insert a page).
Action:
Search (Google or Baidu) did not find any ready-made answers.
Codemirror found in the search, I think it should be OK.
Then download and unzip Codemirror (5.2version) to D-disk, D:\codemirror-5.2.
In D:\codemirror-5.2\demo, there are many demos, of which preview.html is more appropriate.
Open preview.html with chr
My directory structure is: www/cms/myeditor/
The address of the upload image is: www/images/news/content/
Modify Editor_config.js:
*/Window. Ueditor_home_url = "/cms/myeditor/";var URL;
var tmp = Window.location.pathname;URL = window. ueditor_home_url| | Tmp.substr (0,tmp.lastindexof ("/") +1). Replace ("_examples/", ""). Replace ("website/", ""); Here you can configure the Ueditor directory to the relative path or absolute path of your site (meaning an absolute path beginning with HTTP)
deal with, after uploading, will appear garbled. You need to rename the file after the file is uploaded.
Ckfinder does not provide a mechanism for duplicate names.
How is it implemented? Modify the source code.
Implementing file renaming
Source file path
Add a function to get a random name
Where do I call this function? How to use?
Effect
The current file Manager can be in the browser side of the server file additions and deletions, then this is quite dangerous, absolutely not allowed.
Cont
The recommended php code editor I used is zend nbsp; studio nbsp; 9.0, which is too resource-consuming. if you want to change to a small and easy-to-use one, please recommend the following: 1. you can search for the file content in a folder and the entire project in a single folder. you can set the programming font, color, and other programming settings by yourself. you can set the shortcut key by yoursel
The following code is to be called in html.
Today we will talk about how to call the code in the php tutorial, as shown in figure
Include ("../editor/fckeditor. php ");
$ Ofckeditor = new fckeditor ('fckeditor1 ');$ Ofckeditor-> basepath = '../editor /';$ Ofckeditor-> value = '';$ Ofckeditor-> width = '00000
Text Editor plug-in rich content, compared to the traditional textarea tag input to use a lot, see how to introduce in the page implementation1. Download the appropriate Resource pack (can go to the official website to download the appropriate version), I was introduced by PHP2. Download and unzip to a location. (I'm using the TP framework, so I put it under my designated public folder Pbulic)3. Introducing in the pageFirst write the path to the resou
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 does php add domain names to images in the editor? /*** Replace the image in fckedit with the domain name * @ paramstring $ content the content to be replaced * @ paramstring $ the domain name to be added to the image in the strUrl content * @ returnstring * @ eg php to the editor adding domain names to images in
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.