_visual_editor.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
源码类别:

Ajax

开发平台:

Others

  1. <script type="text/javascript">
  2.   $('quicktags').style.display = 'none';
  3.   $('simple_editor').style.display = 'none';
  4.   $('visual_editor').style.display = 'block';
  5.   $('s').className = 'inactive';
  6.   $('f').className = 'active';
  7.   $('text_filter').value = 'none';
  8.   html = $('article_body_and_extended').value;
  9.   $('simple_editor').innerHTML = '';
  10.   
  11.   if (CKEDITOR.instances.article__body_and_extended_editor &&
  12.     typeof(CKEDITOR.instances.article__body_and_extended_editor) == 'object') {
  13.       delete(CKEDITOR.instances.article__body_and_extended_editor);
  14.     }
  15. </script>
  16. <%= ckeditor_textarea('article', 'body_and_extended', {:height => '300', :class => 'large'}) %>
  17. <script type="text/javascript">
  18.   content = CKEDITOR.instances.article__body_and_extended_editor.setData(html);
  19. </script>