diff --git a/src/main.py b/src/main.py index 533e7d9..9573a5d 100644 --- a/src/main.py +++ b/src/main.py @@ -3,6 +3,7 @@ from model import Model from view import View from update import update from export import export_to_xml +from message.simple_messages import Reset model = Model() @@ -12,11 +13,11 @@ def plugin_init(div, _entry, editable): view = View(div) update.set_model(model) update.set_view(view) - + def plugin_render(_div, entry): model.import_xml(entry.content) - update.update_model() + update.update_model(Reset()) def plugin_save(_div):