自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

PHP editor函數(shù)調(diào)用可視化編輯器

開發(fā) 后端
我們在這篇文章中通過一個范例簡單的介紹了PHP editor函數(shù)的相關(guān)使用方法。大家可以通過對介紹的內(nèi)容加深對PHP語言的了解。

我們在這里將會為大家介紹一種功能強(qiáng)大的函數(shù),專門用來進(jìn)行可視化編輯器的調(diào)用。這一函數(shù)就是PHP editor函數(shù)。希望對大家有所幫助。#t#

PHP editor函數(shù)語法

editor($textareaid = 'content', $toolbar = 'phpcms', $width = 500, $height = 400)

$textareaid 為文本框 id

$toolbar 為工具按鈕樣式,目前有 phpcms 和 introduce 兩種可以選擇,一般較大的內(nèi)容編輯框用 phpcms,而簡要介紹則用 introduce

$width 指定編輯器的寬度

$height 指定編輯器的高度

例如:在文章模塊發(fā)布文章時的內(nèi)容編輯采用可視化編輯器的PHP editor函數(shù)代碼如下

 

  1. < textarea   
  2. name="article[content]"   
  3. id="content" cols="60" 
    rows="4"> 
  4. < /textarea> 
  5. < ?=editor("content",
    "phpcms",550,400)  
  6. ?> 

以上就是PHP editor函數(shù)的相關(guān)使用方法介紹。

責(zé)任編輯:曹凱 來源: 百度博客
相關(guān)推薦

2011-08-24 14:22:13

LUA編輯器

2011-03-22 13:54:57

UbuntuPHP編輯器

2014-12-10 13:07:43

Egret GUI/H

2024-02-05 13:40:00

Mathlive開源庫Web 組件

2020-03-11 14:39:26

數(shù)據(jù)可視化地圖可視化地理信息

2022-02-15 09:00:18

Vue編輯器字符串

2022-06-28 09:34:24

可視化Python代碼

2016-09-09 13:48:54

API可視化華為開發(fā)者社區(qū)

2017-10-14 13:54:26

數(shù)據(jù)可視化數(shù)據(jù)信息可視化

2010-03-24 09:20:07

CentOS vi編輯

2022-08-26 09:15:58

Python可視化plotly

2009-04-21 14:26:41

可視化監(jiān)控IT管理摩卡

2013-04-24 10:37:38

百度地圖云存儲

2013-06-18 01:22:46

CocoStudio工Cocos2d-x

2011-01-10 16:17:49

2009-12-01 16:44:06

PHP編輯器

2009-07-29 17:49:05

ibmdwVim

2016-03-15 12:27:54

WireEdit可視化編輯工具網(wǎng)絡(luò)數(shù)據(jù)包編輯器

2023-08-28 08:10:50

Hex圖形編輯器
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號