Changes for page Diff Module

Last modified by Michael Hamann on 2023/07/26 16:06

<
From version < 16.1 >
edited by Marius Dumitru Florea
on 2019/12/12 14:59
To version < 17.1 >
edited by Marius Dumitru Florea
on 2020/06/19 14:42
>
Change comment: There is no comment for this version

Summary

Details

ExtensionCode.ExtensionClass[0]
Description
... ... @@ -262,3 +262,30 @@
262 262  {{/code}}
263 263  
264 264  The default configuration applies a filter that embeds images into the HTML before computing the changes, in order to compare the image data and not the image location.
265 +
266 +Starting with XWiki 12.5RC1 you can also have a button to toggle show / hide the context nodes (unmodified content):
267 +
268 +{{code language="none"}}
269 +{{velocity}}
270 +{{html clean="false"}}
271 +...
272 +<div class="changes-body">
273 + <div class="changes-actions active">
274 + <a href="#toggleRenderedDiffContext" class="html-diff-context-toggle html-diff-context-toggle-show hidden">
275 + <span class="html-diff-context-show">
276 + $services.icon.renderHTML('plus-square')
277 + $escapetool.xml($services.localization.render('web.history.changes.showContext'))
278 + </span>
279 + <span class="html-diff-context-hide">
280 + $services.icon.renderHTML('minus-square')
281 + $escapetool.xml($services.localization.render('web.history.changes.hideContext'))
282 + </span>
283 + </a>
284 + </div>
285 + <div class="html-diff">
286 + ...
287 + </div>
288 +</div>
289 +{{/html}}
290 +{{/velocity}}
291 +{{/code}}

Get Connected