introduct text-editor and image-editor directives