This is a simple module that glues the CKEditor and LESS modules together.
The issue when using CKEditor and LESS is that the theme styling isn't available inside the WYSIWYG, reason being that LESS files are generated dynamically and therefore not able to be added manually using CKEditor's "Define Path" option.
This module grabs the most recently generated LESS file generated by the active theme and inserts it into the WYSIWYG.
Project page: CKEditor LESS
Git repository:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/KyleTaylored/2306291.git ckeditor_less
cd ckeditor_less
Thanks!
Comments
Comment #1
PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
matthias_mo commentedHi !
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/KyleTaylored/2306291.git ckeditor_lessComment #3
matthias_mo commentedComment #4
kyletaylored commentedComment #5
kyletaylored commentedAh, thanks. I used that variable before, then realized I didn't need it. Install removed and info updated!
Comment #6
bekirdag commented1. You should edit module description and fix your clone command:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/KyleTaylored/2306291.git2. Add more description to your module description and the readme file
3. Check if the variables exists or not (or return null) like less_dir, less module my not be setup at all, but enabled.
Comment #7
pushpinderchauhan commentedRepeating myself from https://www.drupal.org/node/2337931#comment-9176167 and removing bonus tag.
@bekirdag, you can also change the issue summary to correct clone command, as I did.
Thanks!
Comment #8
kyletaylored commentedComment #9
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #10
kyletaylored commentedComment #11
kyletaylored commentedCleaned up the code, added more details to readme, and updated clone command.
Comment #12
rang501 commentedInstalled the module and tried to set it up, but it didn't work. Debugged it a bit and on line 67 (ckeditor_less.module) seems to be a mess, the following modification worked:
If there's no less folder on files directory, lines 38 and 39 throw some warnings, so check if path exists before using scandir.
Other than that, everything seems to be fine.
Comment #13
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.