Adds a Print toolbar button that opens the browser print dialog with the current editor content.
Content is rendered in a hidden iframe via the preview module. Optional extra CSS can be injected for print layout.
<script src="/assets/redactor/redactor.js"></script>
<script src="/assets/redactor/plugins/print/print.js"></script>
const app = Redactor('#entry', {
plugins: ['print']
});
string | false)
falsestring)
Redactor('#entry', {
plugins: ['print'],
print: {
css: '/assets/print.css'
}
});
en: {
print: {
print: 'Print'
}
}
This plugin does not emit events.
Opens the browser print dialog for the current editor content.
app.print.print();