Plugins and switching between Preview and BBCode modes