For beginners, the other settings are completely default, as long as the functionality can be implemented.
Preview Map:
1. First download to the official website, this does not say much. After downloading the directory you want to extract to the site, I put it here in the root directory where you need to use the editor, insert the following HTML code:
<!--loading the editor's container--><!--the following script to add text to the initialization content-- <script id= "container" name= "Sb_remarks" type= "text/ Plain "style=" width:600px;height:200px; " ><p> <strong><span style= "FONT-SIZE:14PX;" > Remarks:</span></strong></p><p> <br/></p> </script> <! --profile-- <script type= "Text/javascript" src= "./ueditor/ueditor.config.js" ></script> < !--Editor Source files --<script type= "Text/javascript" src= "./ueditor/ueditor.all.js" ></script> <!--instantiation Editor --<script type= "Text/javascript" > var UE = ue.geteditor (' container '); </script>
2. Calling a value
Just add a sentence in the php file.
$SB _remarks=$_post[' Sb_remarks '];
================================
Here is my full case code:
Index.html:
<!doctype html>sb_add.php
<?php$con = mysql_connect ("localhost", "root", "n"), if (! $con) {die (' Could not connect: '. Mysql_error ()) ; } mysql_query ("Set names ' UTF8 '", $con) mysql_select_db ("Bzec", $con); $SB _name=$_post[' sb_name ']; $SB _numandtype=$_ post[' Sb_numandtype '; $sb _home=$_post[' sb_home '); $SB _usedate=$_post[' sb_usedate ']; $SB _address=$_post[' sb_ Address '];//$sb _updatetime=$_post[' sb_updatetime '; $SB _updatetime=date ("y-m-d g:i:s"); $SB _remarks=$_post[' sb_ Remarks '];//$nikename = Trim ($nikename);/* if (! $nikename | |! $email)//determine if NULL {echo ' cannot be empty '; exit;} */$sql = "INSERT into Shebeidangan (sb_name,sb_numandtype,sb_home,sb_usedate,sb_address,sb_updatetime,sb_remarks) VALUES (' $sb _name ', ' $sb _numandtype ', ' $sb _home ', ' $sb _usedate ', ' $sb _address ', ' $sb _updatetime ', ' $sb _remarks '); if (!mysql_query ($sql, $con)) {die (' Error: '. mysql_error ()); } echo "ADD OK"; Mysql_close ($con)?>
3. If you want to change the default font size of the editor, look for "font" in the editor Ueditor directory,ueditor.all.js file, you can find the place to change the font size and font .
Baidu Ueditor Simple installation debugging and call, online other tutorials too official, not suitable for beginners