KB Article Template
Standardized Tech Support Documentation Generator
Article Content
Metadata & Extras
${symptom.replace(/\n/g, '
')}
Environment
${env}
${calloutHTML}Resolution
${stepsHTML}
Confidential - Internal Use Only
`; } // --- UTILITIES --- window.kbCopyToClip = function(text) { navigator.clipboard.writeText(text).then(() => { alert("Copied to clipboard!"); }); }; window.kbGeneratePDF = function() { const element = document.getElementById('kb-article-preview'); const opt = { margin: 0.5, filename: `KB_Article_${document.getElementById('kb-in-id').value}.pdf`, image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; html2pdf().set(opt).from(element).save(); };