Hi All,
I've had a first go at implementing WYMEditor for editing the site intro text.
From an architecture pov, WYMEditor is located in the
GSContent/browser/javascript folder along with the rest of the javascript,
which is fine. The only thing that I'm less happy about is that the script tags
to load all the WYMEditor stuff (plus jQuery which it seems to need) had to go
in the document head, so I've just added them to groupserver_layout.pt for now.
Ideally they'd get loaded dynamically if the page needed them, i.e., if there
was a WYMEditor on the page, although I guess if we're agressively caching them
it should be less of a problem. I can probably work out how to dynamically load
them if necessary, though.
Any thoughts ?
I've had a first go at implementing WYMEditor for editing the site intro text.
From an architecture pov, WYMEditor is located in the
GSContent/browser/javascript folder along with the rest of the javascript,
which is fine. The only thing that I'm less happy about is that the script tags
to load all the WYMEditor stuff (plus jQuery which it seems to need) had to go
in the document head, so I've just added them to groupserver_layout.pt for now.
Ideally they'd get loaded dynamically if the page needed them, i.e., if there
was a WYMEditor on the page, although I guess if we're agressively caching them
it should be less of a problem. I can probably work out how to dynamically load
them if necessary, though.
Any thoughts ?