Ticket #38 (closed enhancement: fixed)

Opened 2 years ago

Last modified 1 month ago

Core functionality to modify edited documments

Reported by: bermi Assigned to: jf.hovinne
Priority: major Milestone: 0.5
Component: Editor Version: trunk
Keywords: Cc:

Description

In order to acomplish Safari integration and adding support for semantic tags like <address>, WYM needs to be able to replace selected text and insert code before/after the caret.

As jf.hovinne suggested at #12 insertAtCaret should be implemented in the core.

Other useful methods to implement might include

  • hasContentSelected
  • getSelectedContent
  • replaceSelectedContent
  • insertAtCaret
  • deleteSelection
  • moveCaretTo
  • getCaretPosition

If this sounds OK, I will start adding this features at the New parser branch.

Change History

06/29/07 10:33:41 changed by jf.hovinne

  • milestone changed from 0.4 to 0.5.

10/16/08 20:32:27 changed by jf.hovinne

  • status changed from new to closed.
  • resolution set to fixed.

insert() is available since r541, wrap() and unwrap() since r545.