Optimized mention plugin and removed editor functions