add get current composing mode
make plugin interface