template editor - enhancements

get the new html editor working.