diff --git a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js index 96d8440ea..4f2953ffa 100644 --- a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js +++ b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js @@ -88,19 +88,7 @@ // strip html signes if multi line exists if ( this.options.multiline ) { - var text = this.$element.html() - //console.log('h2a 1', text) - text = text.replace(/
<\/p>/g, "\n") // new line as /p
- text = text.replace(/
<\/p>/g, "\n") // new line as /p
- text = text.replace(/<\/p>/g, "\n") // new line as /p
- text = text.replace(/
/g, "\n") // new line as br
- text = text.replace(/<\/div>/g, "\n") // in some caes, new line als div
- text = text.replace(/<.+?>/g, "") // new line as /p
- text = $("