A prototype for editor directives. This is not production code and was written independently so use as you will.