Quantcast

TinyMCE, jQuery and ZF

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

TinyMCE, jQuery and ZF

Chris Hartjes
I was wondering if anyone out there has had any luck getting TinyMCE
to work properly using jQuery and Ajax within ZF.  I'm basically
trying to use some Ajax techniques to dynamically display a form with
a TinyMCE instance in it.  Can't seem to get it to work properly, and
are having a hard time figuring out where to load the TinyMCE stuff,
and where the TinyMCE initialization goes, etc.  Haven't been able to
find much help with google (points to a plugin that seems to no longer
exist).

Any help would be appreciated.

--
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Kamil N
Chris Hartjes pisze:

> I was wondering if anyone out there has had any luck getting TinyMCE
> to work properly using jQuery and Ajax within ZF.  I'm basically
> trying to use some Ajax techniques to dynamically display a form with
> a TinyMCE instance in it.  Can't seem to get it to work properly, and
> are having a hard time figuring out where to load the TinyMCE stuff,
> and where the TinyMCE initialization goes, etc.  Haven't been able to
> find much help with google (points to a plugin that seems to no longer
> exist).
>
> Any help would be appreciated.
>

I was using libraries like scriptaculous  and jquery in ZF and  there
was no problems . About TinyMCE  you have to put ..htaccess file  with
option   RewriteEngine off    in to the folder where you have TinyMCE



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Maurice Fonk
In reply to this post by Chris Hartjes
Could you tell us what exactly goes wrong? TinyMCE can be kind of hard
to get to work correctly in the first place. Getting it to initialize
dynamically (After an Ajax call) is even more difficult. But I don't
think this is the right place to discuss that. What is the exact problem
you're having?

MF

Chris Hartjes wrote:

> I was wondering if anyone out there has had any luck getting TinyMCE
> to work properly using jQuery and Ajax within ZF.  I'm basically
> trying to use some Ajax techniques to dynamically display a form with
> a TinyMCE instance in it.  Can't seem to get it to work properly, and
> are having a hard time figuring out where to load the TinyMCE stuff,
> and where the TinyMCE initialization goes, etc.  Haven't been able to
> find much help with google (points to a plugin that seems to no longer
> exist).
>
> Any help would be appreciated.
>


--
Maurice Fonk

[hidden email]
http://naneau.nl/

Scio me nihil scire

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Chris Hartjes
On 5/8/07, Maurice Fonk <[hidden email]> wrote:
> Could you tell us what exactly goes wrong? TinyMCE can be kind of hard
> to get to work correctly in the first place. Getting it to initialize
> dynamically (After an Ajax call) is even more difficult. But I don't
> think this is the right place to discuss that. What is the exact problem
> you're having?
>

Lots off "tinyMCE not found" errors being reported, and an overall
lack of coherent instructions directly related to my problem.  You're
probably right, this isn't the right place to discuss it.

--
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Jeunejean Pierre
In reply to this post by Chris Hartjes
I used TinyMCE in my CMS (based on ZF) but I was very unhappy with the
generated HTML code quality.
I use now FCKeditor http://www.fckeditor.net/, and I must say it's a
must have, easy to integrate, to configure, good documentation, most
complete editor I have seen.



Chris Hartjes wrote:

> I was wondering if anyone out there has had any luck getting TinyMCE
> to work properly using jQuery and Ajax within ZF.  I'm basically
> trying to use some Ajax techniques to dynamically display a form with
> a TinyMCE instance in it.  Can't seem to get it to work properly, and
> are having a hard time figuring out where to load the TinyMCE stuff,
> and where the TinyMCE initialization goes, etc.  Haven't been able to
> find much help with google (points to a plugin that seems to no longer
> exist).
>
> Any help would be appreciated.
>


--
Pierre Jeunejean
gérant

[hidden email]
www.adnexus.be

Wirtzfeld 3a, B-4760 Büllingen
Tel: 0478556586

A D N E X U S
Solutions informatiques Internet en sous-traitance pour les agences publicitaires.
Solutions informatiques de gestion sur mesure pour les entreprises.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Bastian Gerhard
Chris,

Vice versa - I used FCKeditor in a CMS project and was not  
overwhelmingly happy with it.
I find TinyMCE much more usable, faster and less error-prone in terms  
of cross-browser issues.

What exactly is your problem with TinyMCE?

Not sure how this is related to ZF, however, I utilize TinyMCE  
together with the Dojo scripting framework.
Actually my code is much more complex and it took quite a while to  
get TinyMCE to work properly.
The following example should give a basic clue though:

<script type="text/javascript">
        tinyMCE.init({
                mode: "exact",
                theme: "advanced",
                theme_advanced_buttons1:  
"bold,italic,underline,separator,strikethrough,bullist,numlist,undo,redo
,link,unlink",
                theme_advanced_buttons2: "",
                theme_advanced_buttons3: "",
                theme_advanced_toolbar_location: "top",
                theme_advanced_toolbar_align: "left",
                theme_advanced_path_location: false
        });
        var i = tinyMCE;
        i.execCommand('mceAddControl', true, 'text')
</script>

<textarea rows="10" cols="60" name="text" id="text" />



One more thing: For some odd reason Firefox 2(?) doesnt seem to  
instantiate TinyMCE properly, unless we give it some time to think  
things over.
The following workaround creates the instance with a short delay.  
Works fine for me.

<script type="text/javascript">
         window.setTimeout(
           function() {
             i.tinyInstance.execCommand('mceAddControl', true, 'text');
           }
           , 1000
         );
</script>



Cheers
Bastian



On May 9, 2007, at 5:51 PM, Jeunejean Pierre wrote:

> I used TinyMCE in my CMS (based on ZF) but I was very unhappy with  
> the generated HTML code quality.
> I use now FCKeditor http://www.fckeditor.net/, and I must say it's  
> a must have, easy to integrate, to configure, good documentation,  
> most complete editor I have seen.
>
>
>
> Chris Hartjes wrote:
>> I was wondering if anyone out there has had any luck getting TinyMCE
>> to work properly using jQuery and Ajax within ZF.  I'm basically
>> trying to use some Ajax techniques to dynamically display a form with
>> a TinyMCE instance in it.  Can't seem to get it to work properly, and
>> are having a hard time figuring out where to load the TinyMCE stuff,
>> and where the TinyMCE initialization goes, etc.  Haven't been able to
>> find much help with google (points to a plugin that seems to no  
>> longer
>> exist).
>>
>> Any help would be appreciated.
>

---

Bastian Gerhard
Technology Group, Ashley Associates Ltd.

Minami-Aoyama First Building 8F,
7-8-1 Minami-Aoyama,
Minato-ku,
Tokyo 107-0062,
JAPAN



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Chris Hartjes
Thank you all for your great help and suggestions.  I'm going to try
FCKEditor and make sure to put that .htaccess file in there so that
the rewrite engine doesn't mess things up.  Thanks again.


--
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Jeff Busby-2
Chris you might want to have a look at Xinha as well, I'm currently using it in a project with ZF and so far it's working great.  I used WysiwygPro in my last project it worked well too, although it's not free.

Chris Hartjes wrote:
Thank you all for your great help and suggestions.  I'm going to try
FCKEditor and make sure to put that .htaccess file in there so that
the rewrite engine doesn't mess things up.  Thanks again.



--
Jeff Busby
[hidden email]

View Jeff Busby's profile on LinkedIn

h. 905.635.9737  
c. 905.407.4359  
http://www.jeffbusby.ca


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

James Dempster
In reply to this post by Jeunejean Pierre
I also found FCKEditor best, but it does come down to personal choice they both can work with ZF with no problems provided they are setup correctly.

On 5/9/07, Jeunejean Pierre <[hidden email]> wrote:
I used TinyMCE in my CMS (based on ZF) but I was very unhappy with the
generated HTML code quality.
I use now FCKeditor http://www.fckeditor.net/, and I must say it's a
must have, easy to integrate, to configure, good documentation, most
complete editor I have seen.



Chris Hartjes wrote:

> I was wondering if anyone out there has had any luck getting TinyMCE
> to work properly using jQuery and Ajax within ZF.  I'm basically
> trying to use some Ajax techniques to dynamically display a form with
> a TinyMCE instance in it.  Can't seem to get it to work properly, and
> are having a hard time figuring out where to load the TinyMCE stuff,
> and where the TinyMCE initialization goes, etc.  Haven't been able to
> find much help with google (points to a plugin that seems to no longer
> exist).
>
> Any help would be appreciated.
>


--
Pierre Jeunejean
gérant

[hidden email]
www.adnexus.be

Wirtzfeld 3a, B-4760 Büllingen
Tel: 0478556586

A D N E X U S
Solutions informatiques Internet en sous-traitance pour les agences publicitaires.
Solutions informatiques de gestion sur mesure pour les entreprises.




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

str@strgt.cjb.net
This post was updated on .
In reply to this post by Chris Hartjes
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Yann Nave
On 5/9/07, Stuardo -StR- Rodríguez <[hidden email]> wrote:

> On Wednesday 09 May 2007 06:36:35 Chris Hartjes wrote:
> > Thank you all for your great help and suggestions.  I'm going to try
> > FCKEditor and make sure to put that .htaccess file in there so that
> > the rewrite engine doesn't mess things up.  Thanks again.
>
> What we are using to help everything to find the right path un our systems is
> to have:
>
>         <base href="http://domain.tld/where/my/projectShouldBe/" />
>
> We need to have the full path so it works in IE and firefox, because JS in IE
> does not understand relative paths

Hye I'm using same tips and it works fine

--
Yannux
http://blog.onbebop.net
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

frosty1
In reply to this post by Kamil N

Tomek Nowak wrote
Chris Hartjes pisze:
> I was wondering if anyone out there has had any luck getting TinyMCE
> to work properly using jQuery and Ajax within ZF.  I'm basically
> trying to use some Ajax techniques to dynamically display a form with
> a TinyMCE instance in it.  Can't seem to get it to work properly, and
> are having a hard time figuring out where to load the TinyMCE stuff,
> and where the TinyMCE initialization goes, etc.  Haven't been able to
> find much help with google (points to a plugin that seems to no longer
> exist).
>
> Any help would be appreciated.
>

I was using libraries like scriptaculous  and jquery in ZF and  there
was no problems . About TinyMCE  you have to put ..htaccess file  with
option   RewriteEngine off    in to the folder where you have TinyMCE
if your lookign for a cool editor try out WYM.  
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: TinyMCE, jQuery and ZF

Nick Lo-2
I'm currently in the process of integrating WYMeditor ( http://
www.wymeditor.org/ ) into the admin for a site and can also say it's  
worth taking a look at. The thing that sets it apart is the fact that  
it emphasises document structure, something that can be quite tricky  
to get clients to understand; eg setting headings as headings rather  
than just enlarged bold text.

As is mentioned for TinyMCE below, the trick is to have that  
RewriteEngine Off in the folder that WYMeditor is kept.

Cheers,

Nick

>>
>> I was using libraries like scriptaculous  and jquery in ZF and  there
>> was no problems . About TinyMCE  you have to put ..htaccess file  
>> with
>> option   RewriteEngine off    in to the folder where you have TinyMCE
>>
>>
>
> if your lookign for a cool editor try out WYM.
>
> --
> View this message in context: http://www.nabble.com/TinyMCE%2C- 
> jQuery-and-ZF-tf3711422s16154.html#a10614254
> Sent from the Zend Framework mailing list archive at Nabble.com.
>

Loading...