Home >Backend Development >PHP Tutorial >How to import FCKeditor into PHP SMARTY_PHP tutorial
The example in this article describes how to import FCKeditor into PHP SMARTY. Share it with everyone for your reference. The specific analysis is as follows:
When extracting Fckeditor, use the following method. PHP uses $_POST['p_info'] to get the value of FCKeditor.
Supplement:
1. The path of basepath here must be the same as the path of include above. Otherwise, the file will not be found
In addition, for the input content variable, if you want to save it in the database tutorial, its variable name will be the name of the object you created. For example, the above is "p_info".
2. There are examples of PHP tutorial calls in FCKeditor/_samples/, such as simples01.php and sampleposteddata.php. The latter file is a PHP program that outputs variable names. Through this program, you can get the text input box The variable name of the content.
3. Configuration FCKeditor's toolbar function buttons can be easily customized. You can customize a function button corresponding to a unique name in FCKeditor's configuration file FCKeditor/fck_config.js according to your needs.
Three toolbar styles have been set by default in fck_config.js: Default (including all functions), Accessibility and Basic.
Let us first take a look at the customized format of the toolbar style:
The code is as follows:
The example code is as follows:
The code is as follows:
The code is as follows:
Open the FCKeditor/fck_config.js file:
To use, just put
The code is as follows:
The code is as follows:
I hope this article will be helpful to everyone’s PHP programming design.