code: function ($from) {
                          if ($from.length !== 0) {
                              var $finalParagraph = $from.nextUntil(blockElementsSelector).addBack().wrapAll('<p/>').parent(),
                                  $nextElement = $finalParagraph.nextAll(inlineElementsSelector).first();
                              $finalParagraph.next('br').remove();
                              wrapInlinesInParagraphsFrom($nextElement);
                          }
                      }
docs: Wrap groups of inline elements in paragraphs (recursive)