yozo.js 718 B

12345678910111213141516
  1. if (window.location.href.indexOf("formeditFL") > -1) {
  2. window.addEventListener("message", function (event) {
  3. console.log("永中", event)
  4. if (event.data == "weboffice") {
  5. $("iframe").each(function (n) {
  6. if ($(this)[0].contentWindow.YozoOffice) {
  7. var state = $(this)[0].contentWindow.YozoOffice.Application.ActiveDocument.TrackRevisions;
  8. if (!state) {
  9. $(this)[0].contentWindow.YozoOffice.Application.ActiveDocument.TrackRevisions = true;
  10. $(this)[0].contentWindow.YozoOffice.tipMessage("已开启修订!")
  11. }
  12. }
  13. })
  14. }
  15. })
  16. }