You are not logged in.
Well, I managed to get a pretty editor sized down to *977k*. NOTE: after playing around for quite some time, I found that you *NEED* enterparagraphs plugin in the plugins directory for the editor to load at all.
I am still disappointed that I can't get it much smaller than 977k. The plugins I'm using are:
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'CharacterMap',
'EditTag',
'FullPage',
'FullScreen',
'GetHtml',
'HorizontalRule',
'ListType',
'PasteText',
'QuickTag',
'TableOperations'
];
(and as noted above, I've included Enterparagraphs plugin in the plugins directory)
I've slso stripped /examples, /skins, /lang, and the "lang" directory from each plugin directory.
Has anyone else tried to make a small footprint Xinha suitable for distribution ??
~ Brice
Offline
Best would be to compress the js code. there´s a ticket about this http://xinha.python-hosting.com/ticket/115.
I´d like to have a crunching script for php, to crunch the code on the fly.
Anyone know something like this?
Offline
Ray,
The user is still going to have to download all the extra plugins, etc. to install the webapp. 5+MB is pretty heft IMO..
~ Brice
Offline
I've done a bit better. I've managed to get it down to 517k but this is still a lot bigger than I'd like.
My plugins are:
[
'CharacterMap',
'ContextMenu',
'FullScreen',
'ListType',
'Stylist',
'TableOperations'
];
I'd really like to get rid of FullScreen, but Xinha won't load without it, and I haven't been able to figure out what code in htmlarea.js I need to delete to make it go away.
I'd also like to be able to strip out all the code for dealing with multiple instances of the editor in the same page, as this will not occur the way I'm using it, but I've had a bit of a time figuring out all the functions I can strip without breaking Xinha.
Offline
Really just a shame*full* bump
I'd like to continue discussion on this matter if anyone else is interested. Perhaps we could "fork" a nightly Xinha that uses a javascript compressor & comes with the minimum amount of plugins? ... of course others should be able to be "dropped" in.
~ Brice
Offline
Best would be to compress the js code. there´s a ticket about this http://xinha.python-hosting.com/ticket/115.
I´d like to have a crunching script for php, to crunch the code on the fly.
Anyone know something like this?
I came across one during my Smarty investigations... it acts as a "post-filter", applying itself after a smarty template has been parsed. You can check it out here;
http://smarty.incutio.com/?page=jStrip
~ Brice
Offline
Any compression method needs to be easily repeatable by people who download/mod xinha. I've been given a compressed / modified version of FCKeditor to work on and it's a nightmare. So developers need to be able to get their hands on the formated code, change it and then compress it afterwards for release.
Offline