本文整理汇总了PHP中Editor::CK方法的典型用法代码示例。如果您正苦于以下问题:PHP Editor::CK方法的具体用法?PHP Editor::CK怎么用?PHP Editor::CK使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Editor
的用法示例。
在下文中一共展示了Editor::CK方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo Form::open(null, ['class' => 'form-horizontal']);
?>
<div class="tab-content">
<div class="tab-pane fade in active" id="home">
<div class="form-group<?php
echo Form::has_error('text', $errors);
?>
">
<?php
echo TB_Form::label(__('home.page_text'));
?>
<div class="col-sm-10">
<?php
echo Editor::CK('text', $data['text'], ['class' => 'form-control', 'rows' => 6]);
echo Form::error('text', $errors);
?>
</div>
</div>
</div>
<div class="tab-pane fade" id="seo">
<?php
echo View::factory('backend/v_seo', ['t' => [$data['meta_t'], __('home.meta_t_h'), true], 'd' => [$data['meta_d'], __('home.meta_d_h'), true], 'k' => [$data['meta_k'], __('home.meta_k_h'), true]])->bind('errors', $errors);
?>
</div>
</div>
示例2: date
echo TB_Form::label(__('publications.page_text_preview'));
?>
<div class="col-sm-10">
<?php
echo Editor::CK('text_short', $obj->text_short, ['class' => 'form-control', 'rows' => 6], 'preview');
?>
</div>
</div>
<div class="form-group">
<?php
echo TB_Form::label(__('publications.page_text'));
?>
<div class="col-sm-10">
<?php
echo Editor::CK('text', $obj->text, ['class' => 'form-control', 'rows' => 6]);
?>
</div>
</div>
<div class="form-group">
<?php
echo TB_Form::label(__('publications.page_date'));
?>
<div class="col-sm-10">
<?php
echo Form::input('date', $obj->date ? $obj->date : date('Y-m-d'), ['class' => 'form-control']);
?>
</div>
</div>