_visual_editor.html.erb
上传用户:netsea168
上传日期:2022-07-22
资源大小:4652k
文件大小:1k
- <script type="text/javascript">
- $('quicktags').style.display = 'none';
- $('simple_editor').style.display = 'none';
- $('visual_editor').style.display = 'block';
- $('s').className = 'inactive';
- $('f').className = 'active';
- $('text_filter').value = 'none';
- html = $('article_body_and_extended').value;
- $('simple_editor').innerHTML = '';
-
- if (CKEDITOR.instances.article__body_and_extended_editor &&
- typeof(CKEDITOR.instances.article__body_and_extended_editor) == 'object') {
- delete(CKEDITOR.instances.article__body_and_extended_editor);
- }
- </script>
- <%= ckeditor_textarea('article', 'body_and_extended', {:height => '300', :class => 'large'}) %>
- <script type="text/javascript">
- content = CKEDITOR.instances.article__body_and_extended_editor.setData(html);
- </script>