mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Keep onebox styling in edit history
This commit is contained in:
@@ -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]"]
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user