add ace editor pattern