mariarahat / bungeni-editor

Automatically exported from code.google.com/p/bungeni-editor
2 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