Page 1 of 1

A very early alpha of AceEditor for CMSMS 2.x

Posted: Wed Jan 06, 2016 7:34 pm
by Guido
USE AT YOUR OWN RISK:

https://github.com/Luke1982/aceeditor2 is where you can download the module. Copy it to you modules folder and click install in the module manager. Right now it only has a dropdown that lets you select the mode, which you have to do manually. You can select CSS, Smarty and HTML.

Re: A very early alpha of AceEditor for CMSMS 2.x

Posted: Wed Jan 06, 2016 8:49 pm
by Guido
One thing I'd like to do: I see the admin section knows whether it's loading a TPL, or a CSS file. How can I catch this in my module class file? I'd like to use it so auto-set the editor mode.

Re: A very early alpha of AceEditor for CMSMS 2.x

Posted: Wed Jan 06, 2016 8:59 pm
by calguy1000
you can get the 'language' hint from the data-cms-lang attribute of the textarea.

Re: A very early alpha of AceEditor for CMSMS 2.x

Posted: Wed Jan 06, 2016 9:27 pm
by Guido
Damn that's exactly what I need! Thanks.

Re: A very early alpha of AceEditor for CMSMS 2.x

Posted: Wed Jan 06, 2016 10:21 pm
by Guido
Well, the module now has the following:
  • Automatic detection of the language.
  • A top toolbar that allows you to select a different language.
  • A slider in the top toolbar that allows you to adjust text size while editing.
  • Right side and bottom are dragable, so easy to adjust size.
You still have to install it via manual upload, there is no preference admin screen, there is no uninstall, code needs cleanup, but it works. Now I'm ashamed to say I don't know how to upload this beta version to the project. The project exists, I just don't understand how to upload the tar file.

Re: A very early alpha of AceEditor for CMSMS 2.x

Posted: Mon Jan 18, 2016 12:03 pm
by LB Back
Thanks a lot for the 1.05 version! Great improvement to the use of cmsms 2.1.1. Is there any chance there will be a theme-selector in the near future? I'm an old-fashioned guy and very much used to the Dreamweaver theme, or any theme with a white background. Thanks anyway!

Re: A very early alpha of AceEditor for CMSMS 2.x

Posted: Mon Jan 18, 2016 2:53 pm
by Guido
That's all in the pipeline, but I don't have a time schedule yet. Please create a feature request for this in the forge as a reminder for me about this.

Re: A very early alpha of AceEditor for CMSMS 2.x

Posted: Mon Jan 18, 2016 11:39 pm
by LB Back
Thanks, will do!