help about template editor feature.

  • I need a application to make template doc.
    the template have some concept:
    1. section. (not like ms word), section have property like “title, id, readonly, candeleted. Section can nest, but not allow override. Section start must be paragraph start and section end must be paragraph end. If section property readonly=true, all content is section will be readonly, and don’t allow insert anything. If candeleted=false, the section cann’t be deleted, but all content can be deleted if readonly=false.
    2. group. Group have same property as section. Group is some text group. It contain some text, image, not like section, it start at a any text and end at other text. Group can’t nest.

    Section and group have same behavior. When cursor move over the area, a rectangle around the area will be show. On the rectangle top-left corner has a smart popup button for popup menu to setting section or group property.

    How to implement it? Have any idea and suggestion?

    section:
    [Blockierte Grafik: http://i.imgur.com/3wRZnwB.png]

    group:
    [Blockierte Grafik: http://i.imgur.com/Mg38eu9.png]