TinyMCE requires KSS?

4 messages Options
Embed this post
Permalink
Jon Stahl () TinyMCE requires KSS?
Reply Threaded More More options
Print post
Permalink
Rob-

We just installed TinyMCE 1.1rc on Plone.org, which has KSS disabled.  
TinyMCE doesn't load, which we found surprising.  Does it depend on KSS
somehow?  If so, this is probably not so good, since KSS is already
optional on plone-trunk.

:jon

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Plone-website mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-website
The Wiki: http://plone.org/development/current/projects/WebsiteTeam
-----
Jon Stahl, Director of Web Solutions
ONE/Northwest - Online Networking for the Environment
http://www.onenw.org
Balazs Ree-2 () Re: TinyMCE requires KSS?
Reply Threaded More More options
Print post
Permalink
2009. 05. 25, hétfő keltezéssel 17.56-kor Jon Stahl ezt írta:
> Rob-
>
> We just installed TinyMCE 1.1rc on Plone.org, which has KSS disabled.  
> TinyMCE doesn't load, which we found surprising.  Does it depend on KSS
> somehow?  If so, this is probably not so good, since KSS is already
> optional on plone-trunk.

Having a quick look of the Products.TinyMCE package, it seems indeed
that the loading of the editor is implemented through the loader of KSS,
by using the following rule:

textarea.mce_editable:load {
        action-client: init-tinymce;
}

Not having been involved with the development of the package, I can only
guess that the goal here was to depend on a single loading mechanism
that also works with ajax (inline editing).

There are probably more alternatives to fix this, and none of them is
specific to kss but rather to finding the most effective loading
solution in a mix of the different stacks. Some directions that I see:

- provide a script that invokes tinymce's official loader, and include
it statically in the pages where needed, to do the whole job. In this
case it won't work with ajax but it will load tinymce on every page
where the script is included.

- work out the way to load tinymce from jquery's documentready, in this
case there will be a single loading mechanism, but the package will
depend on jquery also.


Best wishes,

--
Balazs Ree


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Plone-website mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-website
The Wiki: http://plone.org/development/current/projects/WebsiteTeam

signature.asc (196 bytes) Download Attachment
Jon Stahl () Re: TinyMCE requires KSS?
Reply Threaded More More options
Print post
Permalink
In reply to this post by Jon Stahl

Beautiful, thanks!

 

Limi and I are eager to get Plone.org using TinyMCE so it can get some intense production use.  :-)

 

:jon

 

From: Rob Gietema [mailto:[hidden email]]
Sent: Monday, May 25, 2009 11:35 PM
To: Jon Stahl
Cc: [hidden email]
Subject: Re: TinyMCE requires KSS?

 

Hi Jon,

 

At the moment TinyMCE uses KSS for the initialization and for inline-editing. It's on my list to remove the KSS dependency (when I wrote that part I didn't know KSS was going to be optional in the future). I've created a ticket so you can follow the progress (http://plone.org/products/tinymce/issues/39/view).

 

--

Rob

 

On Tue, May 26, 2009 at 2:56 AM, Jon Stahl <[hidden email]> wrote:

Rob-

We just installed TinyMCE 1.1rc on Plone.org, which has KSS disabled.  TinyMCE doesn't load, which we found surprising.  Does it depend on KSS somehow?  If so, this is probably not so good, since KSS is already optional on plone-trunk.

:jon

 


------------------------------------------------------------------------------

_______________________________________________
Plone-website mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-website
The Wiki: http://plone.org/development/current/projects/WebsiteTeam
-----
Jon Stahl, Director of Web Solutions
ONE/Northwest - Online Networking for the Environment
http://www.onenw.org
Jon Stahl () Re: TinyMCE requires KSS?
Reply Threaded More More options
Print post
Permalink
In reply to this post by Balazs Ree-2


> -----Original Message-----
> From: Balazs Ree [mailto:[hidden email]]
> Sent: Tuesday, May 26, 2009 2:30 AM
> To: Jon Stahl
> Cc: [hidden email]; [hidden email]
> Subject: Re: [Plone-website] TinyMCE requires KSS?
>
> 2009. 05. 25, hétfő keltezéssel 17.56-kor Jon Stahl ezt írta:
> > Rob-
> >
> > We just installed TinyMCE 1.1rc on Plone.org, which has KSS disabled.
> > TinyMCE doesn't load, which we found surprising.  Does it depend on
> > KSS somehow?  If so, this is probably not so good, since KSS is
> > already optional on plone-trunk.
>
> Having a quick look of the Products.TinyMCE package, it seems indeed
> that the loading of the editor is implemented through the loader of
> KSS, by using the following rule:
>
> textarea.mce_editable:load {
> action-client: init-tinymce;
> }
>
> Not having been involved with the development of the package, I can
> only guess that the goal here was to depend on a single loading
> mechanism that also works with ajax (inline editing).
>
> There are probably more alternatives to fix this, and none of them is
> specific to kss but rather to finding the most effective loading
> solution in a mix of the different stacks. Some directions that I see:
>
> - provide a script that invokes tinymce's official loader, and include
> it statically in the pages where needed, to do the whole job. In this
> case it won't work with ajax but it will load tinymce on every page
> where the script is included.
>
> - work out the way to load tinymce from jquery's documentready, in this
> case there will be a single loading mechanism, but the package will
> depend on jquery also.

Thanks, Balazs -- helpful advice!  I would think that using jquery's method would work. Plone already includes & requires jquery, so TinyMCE can safely assume it is installed.

:jon
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Plone-website mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-website
The Wiki: http://plone.org/development/current/projects/WebsiteTeam
-----
Jon Stahl, Director of Web Solutions
ONE/Northwest - Online Networking for the Environment
http://www.onenw.org