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.
A very early alpha of AceEditor for CMSMS 2.x
Re: A very early alpha of AceEditor for CMSMS 2.x
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: A very early alpha of AceEditor for CMSMS 2.x
you can get the 'language' hint from the data-cms-lang attribute of the textarea.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: A very early alpha of AceEditor for CMSMS 2.x
Damn that's exactly what I need! Thanks.
Re: A very early alpha of AceEditor for CMSMS 2.x
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.
Re: A very early alpha of AceEditor for CMSMS 2.x
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
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
Thanks, will do!