apostrophe
Advanced tools
Comparing version 0.4.22 to 0.4.23
{ | ||
"name": "apostrophe", | ||
"version": "0.4.22", | ||
"version": "0.4.23", | ||
"description": "Apostrophe is a user-friendly content management system. This core module of Apostrophe provides rich content editing and essential facilities to integrate Apostrophe into your Express project. Apostrophe also includes simple facilities for storing your rich content areas in MongoDB and fetching them back again. Additional functionality is available in modules like apostrophe-pages, apostrophe-snippets, apostrophe-blog, apostrophe-events, apostrophe-twitter and apostrophe-rss.", | ||
@@ -5,0 +5,0 @@ "main": "apostrophe.js", |
@@ -371,3 +371,6 @@ /* global rangy, $, _ */ | ||
} | ||
$(this).find('h1, h2, h3, h4, h5, h6, div, p').each(function() { | ||
// Use first() because the first call usually resolves the rest, and if | ||
// we keep going with the old result set we'll wind up reversing the order | ||
// of the elements | ||
$(this).find('h1, h2, h3, h4, h5, h6, div, p').first().each(function() { | ||
var inner = $(this); | ||
@@ -378,6 +381,9 @@ if (inner.parents('.apos-widget').length) { | ||
var saved = rangy.saveSelection(); | ||
// create next containing former contents of inner | ||
var next = inner.clone(); | ||
// Younger siblings of inner become descendants of next | ||
apos.moveYoungerSiblings(inner[0], next[0]); | ||
apos.moveYoungerSiblings(outer[0], next[0]); | ||
// outer keeps older siblings of inner | ||
apos.keepOlderSiblings(inner[0]); | ||
// next is now the successor of outer | ||
next.insertAfter(outer); | ||
@@ -1975,5 +1981,6 @@ rangy.restoreSelection(saved); | ||
while (sibling) { | ||
var next = sibling.nextSibling; | ||
target.insertBefore(sibling, null); | ||
sibling = node.nextSibling; | ||
sibling = next; | ||
} | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4192252
16837