本文整理匯總了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>