mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Editor: stop inserting empty paragraphs before/after captioned images, see #15095
git-svn-id: https://develop.svn.wordpress.org/trunk@15822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
},
|
||||
|
||||
_do_shcode : function(co) {
|
||||
return co.replace(/\[(?:wp_)?caption([^\]]+)\]([\s\S]+?)\[\/(?:wp_)?caption\][\s\u00a0]*/g, function(a,b,c){
|
||||
return co.replace(/(?:<p>)?\[(?:wp_)?caption([^\]]+)\]([\s\S]+?)\[\/(?:wp_)?caption\](?:<\/p>)?[\s\u00a0]*/g, function(a,b,c){
|
||||
var id, cls, w, cap, div_cls;
|
||||
|
||||
b = b.replace(/\\'|\\'|\\'/g, ''').replace(/\\"|\\"/g, '"');
|
||||
|
||||
Reference in New Issue
Block a user