tag: currentTag.prop('tagName').toLowerCase(),
klass: currentTag.attr('class'),
meta: meta,
others: others,
rawChildren: currentTag.contents(),
prepopulateOnEmpty: true
tag: currentTag.prop('tagName').toLowerCase(),
klass: currentTag.attr('class'),
meta: meta,
others: others,
rawChildren: currentTag.contents(),
prepopulateOnEmpty: true
['orig-before', 'orig-after', 'orig-begin', 'orig-end'].forEach(function(attr) {
element.data(attr, '');
['orig-before', 'orig-after', 'orig-begin', 'orig-end'].forEach(function(attr) {
element.data(attr, '');
- element = canvas.getDocumentElement(utils.nearestInDocumentOrder('[document-text-element]:visible', 'above', element.dom()[0]));
- canvas.setCurrentElement(element);
+ canvas.setCurrentElement(element.getPreviousTextElement());
wrapText: function(params) {
params = _.extend({textNodeIdx: 0}, params);
if(typeof params.textNodeIdx === 'number')
wrapText: function(params) {
params = _.extend({textNodeIdx: 0}, params);
if(typeof params.textNodeIdx === 'number')
var parent = params.element1.parent(),
parentChildren = parent.children(),
var parent = params.element1.parent(),
parentChildren = parent.children(),
tag: params._with.tag,
klass: params._with.klass}),
idx1 = parent.childIndex(params.element1),
tag: params._with.tag,
klass: params._with.klass}),
idx1 = parent.childIndex(params.element1),
if(parent.childIndex(params.element1) > parent.childIndex(params.element2)) {
var tmp = params.element1;
if(parent.childIndex(params.element1) > parent.childIndex(params.element2)) {
var tmp = params.element1;
- var secondList = documentElement.DocumentNodeElement.create({tag: 'div', klass:'list-items'}, this),
+ var secondList = canvas.createNodeElement({tag: 'div', klass:'list-items'}),