fix updating bbcode in editor