Javascript TinyMCE导出每页带页脚的pdf

Javascript TinyMCE导出每页带页脚的pdf,javascript,vue.js,tinymce,Javascript,Vue.js,Tinymce,我正在使用TinyMCE(Vue TinyMCE)从编辑器生成pdf。如何在导出的pdf文件中为每个页面添加页脚(带样式的html)?我只找到了如何在末尾为所有文档添加页脚。 我的配置在此: :init="{ ... setup: function (editor) { editor.on('change', function () { editor

我正在使用TinyMCE(Vue TinyMCE)从编辑器生成pdf。如何在导出的pdf文件中为每个页面添加页脚(带样式的html)?我只找到了如何在末尾为所有文档添加页脚。 我的配置在此:

        :init="{
            ...

            setup: function (editor) {
                editor.on('change', function () {
                    editor.save();
                });
                editor.on('init', function(editor) {
                  editor.save();
                  let header = '<header> ABCD </header>',
                  footer = '<div>footer</div>',
                  content = editor.getContent();
                  content = header + content + footer;
                  editor.setContent(content);
                });
            },

            ...
:init=”{
...
设置:函数(编辑器){
on('change',function(){
editor.save();
});
on('init',函数(编辑器){
editor.save();
let header='ABCD',
页脚='页脚',
content=editor.getContent();
内容=页眉+内容+页脚;
编辑器.setContent(content);
});
},
...