Using IBus

How can I use IBus on Writer? IBus work normal in Linux, but not in Writer. Sometimes I can only type Engish, sometimes it appears many dollar sign ($$$$$). I use ibus-bogo to type Vietnamese. In Calc and Impress, it works.