wysiwyg
- Single Page
Posted 02 October 2012 - 08:03 AM
I think this is more a suggestion for grocerycrud.
can you please add this wysiwyg http://redactorjs.com/ ? Are there implementation with grocerycrud and redactor already?
Cheers!
Posted 07 October 2012 - 09:02 AM
This is a very good wysiwyg editor but I cannot add more texteditors right now. The project is 4 times bigger than before (4MB rather than 1MB that was before) and I don't want to do it bigger only for text-editors .
Thanks to sharing this with us. And yes it seems very good text-editor
Cheers
Johnny
Posted 03 January 2013 - 21:31 PM
Does exist a tutorial for change text editors?
Is this an easy task?
Cheers
Posted 04 January 2013 - 19:02 PM
You can try to change it and share your knowledge step by step to this topic so you can help other people that have similar problems
Thanks
Johnny
Posted 12 July 2013 - 03:32 AM
$class_name = $this->config->text_editor_type == 'minimal' ? 'mini-texteditor' : 'texteditor'; $input = "<textarea id='field-{$field_info->name}' name='{$field_info->name}' class='$class_name' >$value</textarea>";
You will need to remove the above lines from the end of the function, because you alread added to every break.
protected function get_text_input($field_info, $value) { if ($field_info->extras == 'text_editor') { $editor = $this->config->default_text_editor; switch ($editor) { case 'ckeditor': $this->set_js($this->default_texteditor_path . '/ckeditor/ckeditor.js'); $this->set_js($this->default_texteditor_path . '/ckeditor/adapters/jquery.js'); $this->set_js($this->default_javascript_path . '/jquery_plugins/config/jquery.ckeditor.config.js'); $class_name = $this->config->text_editor_type == 'minimal' ? 'mini-texteditor' : 'texteditor'; $input = "<textarea id='field-{$field_info->name}' name='{$field_info->name}' class='$class_name' >$value</textarea>"; break; case 'tinymce': $this->set_js($this->default_texteditor_path . '/tiny_mce/jquery.tinymce.js'); $this->set_js($this->default_javascript_path . '/jquery_plugins/config/jquery.tine_mce.config.js'); $class_name = $this->config->text_editor_type == 'minimal' ? 'mini-texteditor' : 'texteditor'; $input = "<textarea id='field-{$field_info->name}' name='{$field_info->name}' class='$class_name' >$value</textarea>"; break; case 'markitup': $this->set_css($this->default_texteditor_path . '/markitup/skins/markitup/style.css'); $this->set_css($this->default_texteditor_path . '/markitup/sets/default/style.css'); $this->set_js($this->default_texteditor_path . '/markitup/jquery.markitup.js'); $this->set_js($this->default_javascript_path . '/jquery_plugins/config/jquery.markitup.config.js'); $class_name = $this->config->text_editor_type == 'minimal' ? 'mini-texteditor' : 'texteditor'; $input = "<textarea id='field-{$field_info->name}' name='{$field_info->name}' class='$class_name' >$value</textarea>"; break; case 'redactor': $this->set_css($this->default_texteditor_path . '/redactor/redactor.css'); $this->set_js($this->default_texteditor_path . '/redactor/redactor.js'); $input = "<textarea id='field-{$field_info->name}' class='redactor' name='{$field_info->name}' >$value</textarea>"; break; } } else { $input = "<textarea id='field-{$field_info->name}' name='{$field_info->name}'>$value</textarea>"; } return $input; }