User talk:ערן/veReplace.js

Latest comment: 9 years ago by ערן in topic API

Typo edit

I noticed a small typo. ערן, could you change "seacrhAndReplace" to "searchAndReplace"? Helder.wiki 18:18, 1 May 2014 (UTC)Reply

API edit

You should make the following change to avoid breakages in the near future:

  • ve.instances[0] -> ve.init.target.getSurface()

You should also use getters where available so:

  • .model -> .getModel()
  • .model.documentModel -> .getModel().getDocument()
  • .view -> .getView()
  • .view.documentView -> .getView().getDocument()

ESanders (WMF) (talk) 13:29, 28 November 2014 (UTC)Reply

ESanders (WMF), it seems that
model.getFragment( nodeRange ).getData();
doesn't return data. Eran (talk) 07:23, 11 December 2014 (UTC)Reply