We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccb8ba9 commit ce5c2aaCopy full SHA for ce5c2aa
src/web/js/events.js
@@ -283,10 +283,14 @@ function makeEvents(config) {
283
284
if(typeof reportAnswer === 'string') {
285
const state = { ...getCurrentState(config), replContents: "" };
286
+ const elts = $("#output").children(".echo-container").last().nextAll();
287
+ const texts = elts.map((_, e) => $(e).text()).get();
288
+ const htmls = elts.map((_, e) => $(e).html()).get();
289
+ const textResult = JSON.stringify({ texts, htmls });
290
comm.sendEvent({
291
type: "interactionResult",
292
reportAnswer,
- textResult: $("#output").children().last().text(),
293
+ textResult,
294
}, `Reporting an interaction by request, ${src} ${reportAnswer}.`, state);
295
}
296
0 commit comments