本文整理匯總了PHP中Editor::create方法的典型用法代碼示例。如果您正苦於以下問題:PHP Editor::create方法的具體用法?PHP Editor::create怎麽用?PHP Editor::create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Editor
的用法示例。
在下文中一共展示了Editor::create方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Editor
<input type="text" readonly="true" name="NewsImage" id="NewsImage" size="50"/>
<button type="button" onClick="open_me('../includes/upload.php?dir=news',600,200)">
<img src="images/upload.gif" border="0"> Tải ảnh lên</button> </td>
</tr>
<tr>
<th>
Nội dung</th>
<td>
<?php
include_once "ckeditor/ckeditor_php5.php";
include "process/class/class.Editor.php";
$newEditor = new Editor();
$newEditor->create("textContent", "", "ckeditor/");
?>
</td>
</tr>
<tr>
<th align="right">Thêm Liên Tục</th>
<td><input name="continue" type="checkbox" checked="checked" value="OK">
(bỏ chọn nếu chỉ muốn thêm 1 tin)</td>
</tr>
<tr>
<td colspan="2">
<button type="submit" onClick="return check();"><img src="images/add_16x16.gif" border="0"> Thêm</button>
<button type="reset" ><img src="images/delete_16x16.gif" border="0"> Xoá form</button> </td>
</tr>
</table>
示例2: array
" />
是否分享<input class="np" name="is_share" value="<?php
echo $info['is_share'];
?>
" type="checkbox" <?php
echo $info['is_share'] == 1 ? ' checked="checked"' : '';
?>
/></td>
</tr>
<tr>
<tr>
<th align="left" valign="top"><div style="line-height:22px">專題內容</div></th>
<td><?php
echo Editor::create('XH', array('name' => 'content', 'value' => $info['content'], 'width' => '700', 'height' => 500));
?>
<div style="line-height:22px">
<font color="red"><?php
echo $info['click'];
?>
</font>次瀏覽,
<font color="red"><?php
echo $info['comment'];
?>
</font> 條評論
</div>
</td>
</tr>
</table>
<p style="margin:10px 0 10px 72px;">
示例3: array
}
?>
</select>
</label>
<label class="add_tags"> <span class="name"> 添加標簽 <sup>ADD TAGS</sup> </span>
<input class="input_text" name="tags" type="text" />
<br />
<span class="text"> (多個標簽以空格分開,英文單詞請用雙引號括起來) </span> </label>
<div id="save_show">
<div class="close">關閉</div>
<div class="percent_num"></div>
<div class="percent_bar"><span id="bar"> </span></div>
<div class="percent_stat"><span></span></div>
</div>
<div class="editor"> <?php
echo Editor::create('XH', array('name' => 'content', 'value' => @$content, 'width' => '650', 'height' => '600'));
?>
</div>
<br /><input type="button" id="submit_art"value=" 提 交 " class="botton"/>
</div>
<div class="ft"></div>
</form>
</div>
</div>
</div>
</div>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$('.close').click(function(){$('#save_show').hide();});
示例4: array
</td></tr>
<tr>
<th align="right">文檔標題</th><td><input type="text" name="cname" value="<?php
echo $info['cname'];
?>
" class="txt" /></td>
<tr><th align="right">文檔名</th>
<td><input type="text" class="txt" name="title" value="<?php
echo $info['title'];
?>
" /></td>
</tr>
<tr><th align="right">內容</th>
<td> <?php
echo Editor::create('XH', array('name' => 'content', 'value' => $info['content'], 'width' => '650'));
?>
</td>
</tr>
</table>
<div class="submit">
<input type="submit" class="blue_btn" value="保存" name="save_submit" />
<input type="reset" class="gray_btn" value="重置" />
</div>
</form>
</fieldset>
<?php
include dirname(dirname(__FILE__)) . '/footer.php';
?>
<script language="javascript" type="text/javascript">
示例5: Editor
echo $selectnews['image'];
?>
"/><button type="button" onClick="open_me('../includes/upload.php?dir=news',600,200)"><img src="images/upload.gif" border="0"> Tải ảnh lên</button>
</td>
</tr>
<tr>
<th>
Nội dung</th>
<td>
<?php
include_once "ckeditor/ckeditor_php5.php";
include "process/class/class.Editor.php";
$newEditor = new Editor();
$newEditor->create("textContent", $selectnews['content'], "ckeditor/");
?>
</td>
</tr>
<tr>
<td colspan="2">
<button type="submit" onClick="return check();"><img src="images/save.png" border="0"> Lưu thay đổi</button>
<button type="reset" ><img src="images/delete_16x16.gif" border="0"> Xoá form</button></td>
</tr>
</table>
<div align="center" id="errorArea">
</div>
</form>