-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom field and ckeditor #342
Comments
hm... that's interesting. I'm not able to look into this yet, but let me know if you figure out the problem! A CKEditor plugin would be a great addition after we figure out #123. |
I built a ckeditor plugin a long while ago and encountered this. I forget why it happens, but I can look into it soon. |
@rikkipitt thank you! |
@masciugo did you have to do anything else to get your ckeditor working? I got a paperclip field working, and replicated that setup along with your _form.html.erb partial but no luck. I end up with a div with a class of 'form-field--ck-editor-field' but no toolbar. |
It has to do with the CKEditor generated HTML code. <%= f.label field.attribute %>
<div style='display:table; margin-bottom: 20px;'>
<%= f.cktext_area field.attribute, :ckeditor => {:toolbar => 'super_mini'} %>
</div> |
@joshnolan thank you, it works. I had tried to wrap it in a DIV but without applying the |
For reference, I always use this rule to fix this issue
|
@masciugo - we just released version The After you've built your plugin, let me know where it lives (on GitHub and on rubygems.org) so I can share it with others. Happy developing! |
As mentioned in #123, using the new plugin structure, I've created a ckeditor plugin for Administrate: https://github.com/jemcode/administrate-field-ckeditor Let me know what you guys think, there is much scope for adding in custom ckeditor Rikki |
thanks to #326 (wonderful) I was able to add ckeditor in a custom field this way:
I was not able to find a way to prevent the editor from overlapping the label:
I know it's not very related to administrate which is moreover under heavy development but I thought my problem might be of general interest. Thanks a lot
The text was updated successfully, but these errors were encountered: