Wednesday, September 18, 2013

Re: [Rails] overriding view page in core module through rails plugin

On Sep 18, 2013, at 1:55 AM, ruby rails wrote:

> Hi,
>
> I have a rails2.3 application and I have a requirement to override one
> of the view in the core module through plugin. In the core module view
> page, there is a text area to type the message. Now the requirement is
> to make it as like nicedit, redactor so that the message can be
> formatted. So I need to integrate any of the above js plugin editor and
> also some changes in view page. But I need to do it via plugins only...
> How is it possible. Any thoughts on this.. Or any reference with example
> would be highly appreciated.. I am new into plugin development... Please
> help.

Can you say a little more about why a plugin specifically is necessary here? Do you have access to the views? There are TNTC JavaScript textarea decorator functions out there -- google 'javascript textarea editor' for an exhaustive list -- that have nothing to do with Rails at all, yet will serve you exceedingly well here. Look for one that serves all of its assets from a CDN, and you should be able to drop in a couple of lines of script in your _form.html.erb partial and be entirely done.

Walter

>
> --
> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f02bc44ad90ff4b19db88a1d6d5409d0%40ruby-forum.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/46ED6814-7D74-4FB7-8016-521F9AF54AAF%40wdstudio.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate