Ticket #38 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Core functionality to modify edited documments

Reported by: bermi Owned by: jf.hovinne
Priority: major Milestone: 0.5
Component: editor Version: trunk
Keywords: Cc:


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

comment:1 Changed 5 years ago by jf.hovinne

  • Milestone changed from 0.4 to 0.5

comment:2 Changed 4 years ago by jf.hovinne

  • Status changed from new to closed
  • Resolution set to fixed

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

Note: See TracTickets for help on using tickets.