WebViewer Version: 11.8
Please give a brief summary of your issue:
I’m trying to add the prebuilt strike through button to the editor toolbar , but i’m unable to do it.
Please describe your issue and provide steps to reproduce it:
I tried to add the prebuilt strike through button to the editor toolbar , but i’m unable to do it. kindly help
Please provide a link to a minimal sample where the issue is reproducible:
WebViewer({
path: ‘../../lib/webviewer’,
licenseKey: ‘demo:1762537218156:600204bf0300000000d8faf0485c96f3f7a22f1b8c3b87745debbab84e’,
initialDoc: ‘/assets/OfficeOutput.docx’,
fullAPI: true,
enableOfficeEditing: true,
officeEditorOptions: {
initialEditMode: ‘editing’
},
disabledElements: [
‘dropdown-item-toolbarGroup-oe-Layout’,
‘editorModeAndSearch’,
‘toolbarGroup-oe-Layout’
]
}, this.viewer.nativeElement).then(instance => {
const base64String = this.BASE64VAL;
// Convert base64 to Uint8Array
const byteCharacters = atob(base64String);
const byteNumbers = new Array(byteCharacters.length);
for (let i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
const byteArray = new Uint8Array(byteNumbers);
const blob = new Blob([byteArray], {
type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
});
// Load the document
instance.UI.loadDocument(blob, { filename: 'OfficeOutput.docx' });
instance.UI.enableElements([
'officeEditorHomeTab',
'officeEditorHomeGroupedItems',
'strikeoutButton'
]);
instance.UI.setToolbarGroup('officeEditorHomeGroupedItems');
}).catch((err) => {
console.log("err", err);
})