Home >Backend Development >PHP Tutorial >KindEditor/initialization parameters

KindEditor/initialization parameters

WBOY
WBOYOriginal
2016-07-25 09:07:031176browse
  • fileManagerJson

Specify the server-side program for browsing remote pictures.

Data type: String; Default value: basePath + ‘php/file_manager_json.php’

  • allowPreviewEmoticons

When true, you can preview the expression by placing the mouse on the expression.

Data type: Boolean; Default value: true

  • allowImageUpload

Display image upload button when true.

Data type: Boolean; Default value: true

  1. public function add_code($id,$source){
  2. $data["userid"] = showcookie("uid");
  3. $data["codeid"] = $id;
  4. $data["source" ] = $source;
  5. $data["addtime"] = time();
  6. if($this->add("codedata", $data)){
  7. return 1;
  8. }else{
  9. return 0;
  10. }
  11. }
Copy code


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn