lists = require('plugins/core/lists'),
plugin = {name: 'core', actions: [], canvas: {}, documentExtension: {textNode: {}}},
Dialog = require('views/dialog/dialog'),
lists = require('plugins/core/lists'),
plugin = {name: 'core', actions: [], canvas: {}, documentExtension: {textNode: {}}},
Dialog = require('views/dialog/dialog'),
newNodes.second.contents()
.filter(function(child) {
return child.object.describesParent;
})
.forEach(function(child) {
//child.detach();
newNodes.second.contents()
.filter(function(child) {
return child.object.describesParent;
})
.forEach(function(child) {
//child.detach();
+ [newNodes.first, newNodes.second].some(function(newNode) {
+ if(!(newNode.contents().length)) {
+ emptyText = newNode.append({text: ''});
+ return true; // break
+ }
+ });
+ parentDescribingNodes.forEach(function(node) {
+ newNodes.first.append(node);
+ });
return _.extend(newNodes, {emptyText: emptyText});
},
getChangeRoot: function() {
return _.extend(newNodes, {emptyText: emptyText});
},
getChangeRoot: function() {
commentAction,
createWrapTextAction({name: 'emphasis', klass: 'emp', wrapDescription: gettext('Mark as emphasized'), unwrapDescription: gettext('Remove emphasis')}),
createWrapTextAction({name: 'cite', klass: 'cite', wrapDescription: gettext('Mark as citation'), unwrapDescription: gettext('Remove citation')}),
commentAction,
createWrapTextAction({name: 'emphasis', klass: 'emp', wrapDescription: gettext('Mark as emphasized'), unwrapDescription: gettext('Remove emphasis')}),
createWrapTextAction({name: 'cite', klass: 'cite', wrapDescription: gettext('Mark as citation'), unwrapDescription: gettext('Remove citation')}),
].concat(plugin.actions, templates.actions, footnote.actions, switchTo.actions, lists.actions);
].concat(plugin.actions, templates.actions, footnote.actions, switchTo.actions, lists.actions);
plugin.config = function(config) {
// templates.actions[0].config(config.templates);
templates.actions[0].params.template.options = config.templates;
plugin.config = function(config) {
// templates.actions[0].config(config.templates);
templates.actions[0].params.template.options = config.templates;