We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<script> window.addEventListener('message', function (event) { receiveMessage(event) }) function postMessage(msg) { document.getElementById("collabora-online-viewer").contentWindow.postMessage(JSON.stringify(msg), '*'); } function postReady() { postMessage({MessageId: "Host_PostmessageReady"}) addButton() } function addButton() { postMessage({ MessageId: "Insert_Button", Values: { id: "jinber", imgurl: 'http://192.168.68.29:8005/logoRouter.png', hint: 'JinberButton', label: "JinberButton", insertBefore: "inserthyperlink" } }); postMessage({ MessageId: "Remove_Button", Values: { id: "about" } }) postMessage({ MessageId: "Action_ChangeUIMode", Values: { // Mode:"classic", // working,the custom button added before inserthyperlink Mode: "notebookbar", // notworking,the custom button alwary added after save } }) } function receiveMessage(event) { try { let msg = JSON.parse(event.data); if (!msg) { return; } switch (msg.MessageId) { case "App_LoadingStatus": if (msg.Values && msg.Values.Status === "Document_Loaded") { postReady(); } break; } } catch (e) { } } </script>
classic mode
notebookbar mode
The text was updated successfully, but these errors were encountered:
Indeed, currently Insert_Button does not work on the tabbed bar (notebookbar), it is a missing feature.
Sorry, something went wrong.
No branches or pull requests
classic mode
notebookbar mode
The text was updated successfully, but these errors were encountered: