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-websiteThe Wiki:
http://plone.org/development/current/projects/WebsiteTeam