Hi Tim,
I have not tried with CKEditor and live-editor, and I have used
wysihtml5 editor with hot-input :P. Not the same but maybe the code will
help you.
This is the code I used to embed the editor:
<hot-input field="contenido" path="/attachments/#{@attachment.id}" >
<input id="wysihtml5" style="width:100%; height:355px;"/>
</hot-input>
What I wanted to happen was: "Whenever a user edits this field, I want
an Ajaz call made and the content saved". But the problem was that the
"change" event from wysyhtml5 was not being "pushed" to the hot-input.
The solution was a bit of Coffeescript:
# This code runs onload
wysihtml5 = $('#wysihtml5').wysihtml5({
locale: 'es-ES',
lists: false,
image: false,
link: false,
events: {
"change": ->
wysihtml5_callback
}
})
@wysihtml5_callback = ->
$('#wysihtml5').trigger('change')
Warm regards,
Ignacio
El 21/04/14 04:31, Tim Griffin escribió:
> Hi all;
>
> Anyone have an approach to getting the CKEditor to work under a
> <live-editor> tag?
>
> Is it even possible?
>
> I'm using CKEditor as a gem in a Hobo 2.1.0, Rails 3.2.12 app:
>
> gem "ckeditor", :git => 'git://github.com/fxposter/ckeditor.git'
>
> I have a /content/ field defined as an /html/ field in my model, and a
> javascript function to replace /html/ fields with ckeditors. That works
> nicely. Then, I thought:
>
> <feckless-fieldset class="horizontal" fields="content">
> <content-view:>
> <live-editor/>
> </content-view:>
> </feckless-fieldset>
>
> But, I was being overly hopeful.
>
> Tim
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.