Hi Damjan Rems,
Thank you so much for your reply, Oops, is that a cracker..?!, (OMG),
Yes I followed the gems documentation and have created files according
through the documentation,
but, they did not mention any options about how to remove
buttons(options) which are not necessary for my app. like "source, save,
new page, print, paste text, paste from' etc.,
And I also included the scripting code
$('.ckeditor').ckeditor({
// optional config
})
in java file "app/assets/javascripts/application.js", I did not
understand what to replace in the place of "// optional config "
Thank you,
On Monday, 1 September 2014 13:31:13 UTC+5:30, Ruby-Forum.com User wrote:
>
> New to Rails and you started probably with the hardest cracker by my
> opinion ;-)
>
> CK loads setting dynamical when it is loaded into browser. Which can not
> be done right with assets pipeline.
>
> If you read documentation on github you will see this:
> ----------
> Customize ckeditor
>
>
> In order to configure the ckeditor default options, create files:
>
> app/assets/javascripts/ckeditor/config.js
>
> app/assets/javascripts/ckeditor/contents.css
> ----------
>
> It should probably work. I don't use this gem.
>
> I kinda made CK work by myself and I put config files directly to public
> folder (I can have multiple configs for multiple sites). Location of
> configuration files can be set in javascript when object is initialized.
>
> by
> TheR
>
> --
> Posted via http://www.ruby-forum.com/.
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/0dbe329c-c045-4634-aa0f-1009527248f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.