I realize this is a minor feature request, but it would sure be nice if a 'Save and Continue' button were added to the CSS Edit page for those of us not using an external CSS editor and want to save our work / review renderings of our changes in a second window without having to go back to the CSS Injector Main page and re-opening our CSS Rule.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

timb’s picture

I just came here to make the same feature request. Preety minor, but saving a few clicks can be priceless.

BeatnikDude’s picture

Bump

ISPTraderChris’s picture

I've attached a patch that adds this functionality. For those not comfortable with patching, I've also included the complete css_injector.admin.inc file (zipped) -- this was the only file updated. I have not extensively tested this yet, but it is a simple bit of code and seems to be working on my end.

ISPTraderChris’s picture

Assigned: Unassigned » ISPTraderChris
Status: Active » Needs review
timb’s picture

I just gave the patch a try and it works like a charm. I have already saved myself 20 clicks in the past two minutes. Now if I could just find out where that 1px of padding in my deesign is coming from.

BeatnikDude’s picture

Patch works for me and have used it on multiple sites already.
Thanks,

timb’s picture

This patch is working great and saving me time. I just thought of two improvements and wanted to jot them down.

1) Put a copy of the 'Save and Continue' button immediately below the 'CSS Code' text area.
2) Have 'Save and Continue' button submit via javascript, so that your scroll position and any text area resizing is saved.

timb’s picture

duped - sorry

eaton’s picture

Committed, thanks!

eaton’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.