12345678910111213141516 |
- if (window.location.href.indexOf("formeditFL") > -1) {
- window.addEventListener("message", function (event) {
- console.log("永中", event)
- if (event.data == "weboffice") {
- $("iframe").each(function (n) {
- if ($(this)[0].contentWindow.YozoOffice) {
- var state = $(this)[0].contentWindow.YozoOffice.Application.ActiveDocument.TrackRevisions;
- if (!state) {
- $(this)[0].contentWindow.YozoOffice.Application.ActiveDocument.TrackRevisions = true;
- $(this)[0].contentWindow.YozoOffice.tipMessage("已开启修订!")
- }
- }
- })
- }
- })
- }
|