Nico Knoll Posted June 27, 2015 Share Posted June 27, 2015 Hey, I really love the functionality of Hanna Code. But it's 45mb (!!!) because of the ACE editor. So my idea is to change it to work like my Template-Editor module: Use ACE in case it is installed and otherwise implement only a tab functionality. That should work as well and save some space (and upload time!). Here's the part of codes that could just be copied into hanna code: https://github.com/NicoKnoll/ProcessTemplateEditor/blob/master/ProcessTemplateEditor.js#L1-L19 Thanks, Nico 5 Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 27, 2015 Share Posted June 27, 2015 I'm also using a small module to hook the ace extended module into the "Custom PHP Code" option of page-fields and it just falls back to doing nothing if ace is not installed. 2 Link to comment Share on other sites More sharing options...
harutyun Posted July 26, 2015 Share Posted July 26, 2015 45mb is too huge. for ace to work you only need https://github.com/ajaxorg/ace-builds/blob/master/src/ace.js which 625kb (337 when minified) and a few modes that are loaded on demand. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now