mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 08:43:25 +08:00
DEV: Update diffhtml to 1.0.0-beta.29 again (#22365)
This reverts commit d40da76c8e
.
This commit is contained in:
parent
1b693d0d60
commit
6a50d79044
|
@ -455,10 +455,12 @@ export default Component.extend(TextareaTextManipulation, {
|
|||
);
|
||||
|
||||
previewPromise = loadScript("/javascripts/diffhtml.min.js").then(() => {
|
||||
window.diff.innerHTML(
|
||||
this.element.querySelector(".d-editor-preview"),
|
||||
cookedElement.innerHTML
|
||||
);
|
||||
const previewElement =
|
||||
this.element.querySelector(".d-editor-preview");
|
||||
// This is a workaround for a known bug in diffHTML
|
||||
// https://github.com/tbranyen/diffhtml/issues/217#issuecomment-1479956332
|
||||
window.diff.release(previewElement);
|
||||
window.diff.innerHTML(previewElement, cookedElement.innerHTML);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ export const PUBLIC_JS_VERSIONS = {
|
|||
"chart.min.js": "chart.js/3.5.1/chart.min.js",
|
||||
"chartjs-plugin-datalabels.min.js":
|
||||
"chartjs-plugin-datalabels/2.2.0/chartjs-plugin-datalabels.min.js",
|
||||
"diffhtml.min.js": "diffhtml/1.0.0-beta.20/diffhtml.min.js",
|
||||
"diffhtml.min.js": "diffhtml/1.0.0-beta.29/diffhtml.min.js",
|
||||
"jquery.magnific-popup.min.js":
|
||||
"magnific-popup/1.1.0/jquery.magnific-popup.min.js",
|
||||
"pikaday.js": "pikaday/1.8.2/pikaday.js",
|
||||
|
|
File diff suppressed because one or more lines are too long
1
public/javascripts/diffhtml/1.0.0-beta.29/diffhtml.min.js
vendored
Normal file
1
public/javascripts/diffhtml/1.0.0-beta.29/diffhtml.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user