CKEDITOR:将wordcount值存储到变量中

时间:2017-04-12 03:25:43

标签: javascript php html ckeditor ckeditor-wordcount

CKEDITOR:如果我传递textarea的内容,我有一个表单和textarea(替换为ckeditor)我如何得到wordcount值?我在ckeditor中使用wordcount插件。谢谢

//how do i store the wordcount?
CKEDITOR.replace('textarea', {
  extraPlugins: 'wordcount,justify'
});
//how do i get the wordcount ?
<?=  form_input($title,set_value('title')) . "</br>"; ?>
  <textarea name="textarea" id="text" required></textarea>
  <?= form_close(); ?>

    //in php $text = $this->input->post('textarea'); //$textwordcount = wordcount of the textarea;

1 个答案:

答案 0 :(得分:0)

也许你可以使用我的技巧

headerA+Standalone.h