mirror of
https://github.com/friendica/friendica
synced 2025-04-22 01:10:13 +00:00
fix !@#$ tinymce linebreaks for the thousandth time
This commit is contained in:
parent
fd626022ec
commit
5589bca1e0
6 changed files with 180 additions and 157 deletions
|
@ -46,10 +46,19 @@
|
|||
|
||||
function rep(re, str) {
|
||||
|
||||
|
||||
s = s.replace(re,str);
|
||||
|
||||
//modify code to keep stuff intact within [code][/code] blocks
|
||||
//Waitman Gobble NO WARRANTY
|
||||
|
||||
/* This doesn't seem to work well with
|
||||
[code]line1
|
||||
line2[/code]
|
||||
commenting out for now
|
||||
*/
|
||||
|
||||
/*
|
||||
var o = new Array();
|
||||
var x = s.split("[code]");
|
||||
var i = 0;
|
||||
|
@ -71,7 +80,7 @@
|
|||
}
|
||||
|
||||
s = o.join("[code]");
|
||||
|
||||
*/
|
||||
};
|
||||
|
||||
|
||||
|
@ -150,8 +159,8 @@
|
|||
rep(/<blockquote[^>]*>/gi,"[quote]");
|
||||
rep(/<\/blockquote>/gi,"[/quote]");
|
||||
rep(/<hr \/>/gi,"[hr]");
|
||||
rep(/<br (.*?)\/>/gi,"\n\n");
|
||||
rep(/<br\/>/gi,"\n\n");
|
||||
rep(/<br (.*?)\/>/gi,"\n");
|
||||
rep(/<br\/>/gi,"\n");
|
||||
rep(/<br>/gi,"\n");
|
||||
rep(/<p>/gi,"");
|
||||
rep(/<\/p>/gi,"\n");
|
||||
|
@ -171,6 +180,7 @@
|
|||
|
||||
function rep(re, str) {
|
||||
|
||||
|
||||
//modify code to keep stuff intact within [code][/code] blocks
|
||||
//Waitman Gobble NO WARRANTY
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue