Only apply `insertHTML` command in P mode