Thomas Mortagne wrote:
Hi devs,
I need some help to decide what is the best to convert objects when
changing the syntax.
The problem is that we can't just extend the content conversion
javascript to the objects because the way edit mode works the
wiki/WYSIWYG and objects edit modes are isolated: the page is reloaded
and content lost when switching to objects are reloaded for database.
So I can see some way to do some more clean that others:
1) refactor the general edit mode to load everything and switch
between content/objects without reloading the page or at least without
loosing content like we do for WYSIWYG/content switch
2) let the content conversion work as it is and convert and save the objects
3) convert and save everything
I think 1) would be the best, I think the user should not loose
content when switching objects/content anyway. But this looks like too
big for 1.8.1 which need the objects converted when content is
converted.
2) is wrong IMO because this mean we will have a 2.0 document with 1.0
content/2.0 objects in it until the user save the document and worst
if the user does not save the content.
I think we should do 3) (with a warning to the user saying that this
change can be reverted in the history) waiting for 1).
WDYT ?
1) is something for the future. 3) seems the right choice.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/