You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
513 B
21 lines
513 B
(function () {
|
|
'use strict';
|
|
|
|
var website = openerp.website;
|
|
var _t = openerp._t;
|
|
website.RTE.include({
|
|
_config: function () {
|
|
// add anchor button
|
|
var config = this._super();
|
|
config.plugins = config.plugins.concat(',link');
|
|
_.each(config.toolbar, function (tb) {
|
|
if (tb.name === 'span'){
|
|
tb.items.unshift('Anchor');
|
|
}
|
|
});
|
|
return config;
|
|
},
|
|
});
|
|
})();
|
|
|
|
|