basic support for wysiwyg mode