Mahmoud Mehyar
Tue, 02 Mar 2010 04:46:40 -0800
Hi We are using CKeditor in our project but this should not be a different case than TinyMCE as they all work the same
All you need to do is place the the javascript file location at the top of
your tt page as your example
<script type="text/javascript" src="/jscripts/tiny_mce/tiny_
mce.js"></script>
make sure the path above is located in the static folder
then at the bottom page include the rendering script as described in TinyMCE
documentation
in our case using CKeditor our tt page looks like this
------------
<script type="text/javascript" src="/static/ckeditor/ckeditor.js"></script>
<form class="form" id="form" method="post" action="/admin">
<fieldset>
<legend>HTML Page</legend>
<div>
<textarea name="htmlarea" cols="10" rows="5" id="htmlarea">[%
data.content %]</textarea>
</div>
</fieldset>
<input type="submit" value="submit>"
</form>
<script type="text/javascript">
CKEDITOR.replace( 'htmlarea' );
</script>
hope this was helpful
On Tue, Mar 2, 2010 at 3:30 PM, Paul Falbe <p...@cassens.com> wrote:
> On Tue, Mar 02, 2010 at 11:03:28AM +0100, Tobias Kremer wrote:
> > On Tue, Mar 2, 2010 at 4:03 AM, Paul Falbe <p...@cassens.com> wrote:
> > > Is there a exmaple somewhere where I can see howto insert this code
> > > into a page made made FormBuilder i.e. the "tt" file?
> >
> > Our code which uses TinyMCE is not in production yet, so unfortunately
> > I can't give you any online examples. But there is nothing special to
> > incorporating TinyMCE into your TT templates because it works in an
> > unobtrusive way. Just render your FormBuilder forms and add the
> > TinyMCE javascript which will turn every (or selected) textarea(s) on
> > the page into a rich-text editor without you having to alter your form
> > rendering process.
>
> Tobias,
>
> So, are you doing something like
>
> <script type="text/javascript"
> src="/jscripts/tiny_mce/tiny_mce.js"></script>
>
> or just putting the actual code of tiny_mce.js into the formbuilder form?
> Aso, are you developing hooks to upload images also? If so I'd like to see
> that if possible.
> Please forgive my repeated questions I don't do much web development.
>
> -Paul
>
> _______________________________________________
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/