Added real round-tripping, instead of canned HTML

Change-Id: I73cef900e0777352e34818396c1e5d6f218da967
This commit is contained in:
Trevor Parscal 2012-06-08 15:17:36 -07:00
parent d61045085a
commit 3cef118240

View file

@ -371,9 +371,8 @@
Returns new page content
*/
veCore.prototype.getParsoidWikitextAndSave = function( callback ) {
// TODO: get html from linmod converter
var data = this.mainEditor.documentModel.getData(),
html = "<p>Test edit made with Visual Editor</p><p>" + (new Date()).getTime() + "</p>",
html = ve.dm.converter.getDomFromData( data ),
summary = $('#txtEditSummary').val(),
minor = $('#chkMinorEdit').prop('checked'),
watch = $('#chkWatchlist').prop('checked');