Sha256: 7e6e48e69aa689e0586afb175da205996f96aa74c0608b24ba6f249d1e01afa1
Contents?: true
Size: 376 Bytes
Versions: 15
Compression:
Stored size: 376 Bytes
Contents
punymce.plugins.ForceNL=function(ed){ed.onGetContent.add(function(ed,o){if(o.format=='forcenl'||o.save){punymce.each([[/<(br\s*\/)>/gi,"\n"],[/<(br.*?\/)>/gi,""]],function(v){o.content=o.content.replace(v[0],v[1])})}});ed.onSetContent.add(function(ed,o){if(o.format=='forcenl'||o.load){punymce.each([[/\n/gi,"<br />"]],function(v){o.content=o.content.replace(v[0],v[1])})}})};
Version data entries
15 entries across 15 versions & 1 rubygems