FIX: Keep onebox styling in edit history

This commit is contained in:
Penar Musaraj
2020-06-15 15:23:14 -04:00
parent 18244ff44c
commit 298393a5bc
2 changed files with 30 additions and 3 deletions

View File

@@ -261,9 +261,10 @@ export default Controller.extend(ModalFunctionality, {
this.set("bodyDiff", html);
} else {
const opts = {
features: { editHistory: true },
features: { editHistory: true, historyOneboxes: true },
whiteListed: {
editHistory: { custom: (tag, attr) => attr === "class" }
editHistory: { custom: (tag, attr) => attr === "class" },
historyOneboxes: ["header", "article", "div[style]"]
}
};