Re: TinyMCE requires KSS?
"Jon Stahl" <jon-PRw/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.website |
|---|---|
| Message-ID | <79EDBCCCD70E25499369860FC555BBFA018EA893@bunnyluv.onenorthwest.office> |
> -----Original Message----- > From: Balazs Ree [mailto:[email protected]] > Sent: Tuesday, May 26, 2009 2:30 AM > To: Jon Stahl > Cc: [email protected]; [email protected] > 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 [email protected] https://lists.sourceforge.net/lists/listinfo/plone-website The Wiki: http://plone.org/development/current/projects/WebsiteTeam