mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
* pr/1371: check manual inserted document check manual inserted comment fix line break bug document fix line break bug comment nl2br content document nl2br content comment Update xe_textarea.min.js Update xe_textarea.js check nohtml editor document check nohtml editor comment
This commit is contained in:
commit
d92311fce0
4 changed files with 41 additions and 2 deletions
|
|
@ -34,7 +34,6 @@ function editorGetContentTextarea(editor_sequence) {
|
|||
content = content.replace(/>/g, ">");
|
||||
content = content.replace(/\"/g, """);
|
||||
}
|
||||
content = content.replace(/(\r\n|\n)/g, "<br />");
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
function editorStartTextarea(a,b,c){var d=xGetElementById("editor_"+a),e=xGetElementById("htm_"+a).value;d.form.setAttribute("editor_sequence",a),d.style.width="100%",editorRelKeys[a]=new Array,editorRelKeys[a].primary=d.form[c],editorRelKeys[a].content=d.form[b],editorRelKeys[a].func=editorGetContentTextarea;var f=d.form[b].value;e&&(f=f.replace(/<br([^>]*)>/gi,"\n"),"br"!=e&&(f=f.replace(/</g,"<"),f=f.replace(/>/g,">"),f=f.replace(/"/g,'"'),f=f.replace(/&/g,"&"))),d.value=f}function editorGetContentTextarea(a){var b=xGetElementById("editor_"+a),c=xGetElementById("htm_"+a).value,d=b.value.trim();return c&&("br"!=c&&(d=d.replace(/&/g,"&"),d=d.replace(/</g,"<"),d=d.replace(/>/g,">"),d=d.replace(/\"/g,""")),d=d.replace(/(\r\n|\n)/g,"<br />")),d}
|
||||
function editorStartTextarea(a,b,c){var d=xGetElementById("editor_"+a),e=xGetElementById("htm_"+a).value;d.form.setAttribute("editor_sequence",a),d.style.width="100%",editorRelKeys[a]=new Array,editorRelKeys[a].primary=d.form[c],editorRelKeys[a].content=d.form[b],editorRelKeys[a].func=editorGetContentTextarea;var f=d.form[b].value;e&&(f=f.replace(/<br([^>]*)>/gi,"\n"),"br"!=e&&(f=f.replace(/</g,"<"),f=f.replace(/>/g,">"),f=f.replace(/"/g,'"'),f=f.replace(/&/g,"&"))),d.value=f}function editorGetContentTextarea(a){var b=xGetElementById("editor_"+a),c=xGetElementById("htm_"+a).value,d=b.value.trim();return c&&("br"!=c&&(d=d.replace(/&/g,"&"),d=d.replace(/</g,"<"),d=d.replace(/>/g,">"),d=d.replace(/\"/g,"""))),d}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue