WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Front-end Editor] Paragraph editing not working properly ( fix)

[Plugin: Front-end Editor] Paragraph editing not working properly ( fix)

  • When using the plugin to edit specific paragraphs, it does not recognize paragraphs properly. This is due to the fact that the regex in the function split (fields/post.php, around line 143) does not take line-breaks into account. This is easily remedied by adding an “s” at the end of the expression. It makes sure that line breaks are also matched by the . (dot) operator.

    protected function split( $content, $autop = false ) {
    		if ( $autop )
    			$content = wpautop( $content );
    
    		preg_match_all( "#<p.*?>(.*?)</p>#s", $content, $matches );
    
    		return $matches[1];
    	}

    Regards,
    Joost.

    http://wordpress.org/extend/plugins/front-end-editor/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Front-end Editor] Paragraph editing not working properly ( fix)’ is closed to new replies.