Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apostrophe

Package Overview
Dependencies
Maintainers
8
Versions
1081
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe - npm Package Compare versions

Comparing version 0.4.22 to 0.4.23

2

package.json
{
"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;
}
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc