bungeni-org / bungeni-editor

The Bungeni Editor is Drafting and Markup framework for XML production built on the OpenOffice.org platform. It supports different legislative document types (e.g hansard, bill) and supports definition of custom types, and allows markup and storage of metadata within the ODF document.
3 stars 0 forks source link

Default API behavior for rejecting insert change broken in some cases. #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See issue details here 
http://www.openoffice.org/issues/show_bug.cgi?id=111812

TO DO : 

Add a custom api to support correct behavior

Original issue reported on code.google.com by ashok.ha...@gmail.com on 25 May 2010 at 9:32

GoogleCodeExporter commented 9 years ago
Instead of a custom API handle it using the standard BungeniODFDOM API but use a
special markup action while marking up a portion of text as a section  :

1) copy the selected text, and then delete it (text:deletion)
2) paste the selected text at the end point of the deletion and mark the 
section over
it (text:insertion) .

In this way the section insertion is correctly recorded as a deletion of a 
pargraph
and a creation of a new section with content

Original comment by ashok.ha...@gmail.com on 25 May 2010 at 12:55