21 lines
513 B

  1. (function () {
  2. 'use strict';
  3. var website = openerp.website;
  4. var _t = openerp._t;
  5. website.RTE.include({
  6. _config: function () {
  7. // add anchor button
  8. var config = this._super();
  9. config.plugins = config.plugins.concat(',link');
  10. _.each(config.toolbar, function (tb) {
  11. if (tb.name === 'span'){
  12. tb.items.unshift('Anchor');
  13. }
  14. });
  15. return config;
  16. },
  17. });
  18. })();