@@ -86,7 +86,8 @@ ops.OpInsertImage = function OpInsertImage() {
8686 var odtDocument = /**@type {ops.OdtDocument }*/ ( document ) ,
8787 odfCanvas = odtDocument . getOdfCanvas ( ) ,
8888 domPosition = odtDocument . getTextNodeAtStep ( position , memberid ) ,
89- textNode , refNode , paragraphElement , frameElement ;
89+ textNode , refNode , paragraphElement , frameElement ,
90+ events = [ ] ;
9091
9192 if ( ! domPosition ) {
9293 return null ;
@@ -99,6 +100,11 @@ ops.OpInsertImage = function OpInsertImage() {
99100 frameElement = createFrameElement ( odtDocument . getDOMDocument ( ) ) ;
100101 textNode . parentNode . insertBefore ( frameElement , refNode ) ;
101102 odtDocument . handleStepsInserted ( { position : position } ) ;
103+ // signal not used in webodf, but 3rd-party (NVivo)
104+ events . push ( {
105+ eventid : ops . OdtDocument . signalStepsInserted ,
106+ args : { position : position }
107+ } ) ;
102108
103109 // clean up any empty text node which was created by odtDocument.getTextNodeAtStep
104110 if ( textNode . length === 0 ) {
@@ -109,14 +115,16 @@ ops.OpInsertImage = function OpInsertImage() {
109115 odfCanvas . refreshCSS ( ) ;
110116 odfCanvas . rerenderAnnotations ( ) ;
111117
112- return [ {
118+ events . push ( {
113119 eventid : ops . OdtDocument . signalParagraphChanged ,
114120 args : {
115121 paragraphElement : paragraphElement ,
116122 memberId : memberid ,
117123 timeStamp : timestamp
118124 }
119- } ] ;
125+ } ) ;
126+
127+ return events ;
120128 } ;
121129
122130 /**
0 commit comments