You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#113402 Which settings do I need to set? In order to paste each linebreak in the text with a tag?

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Wednesday, 22 March 2023 12:18 GMT

zeljka
When text is paste form txt file, example:
text

text
text

how to setup Configuration and get result:
<div>text</div>
<div> </div>
<div>text</div>
<div>text</div>

each line of text in div.

I tried the following configuration, but it does not give the expected result:
Editor Global Configuration:
Div Container & Div on Enter

Pad Empty Tags is set to YES.

Profile Configuration:
Plugin Parameters ->Clipboard->Microsoft Word® cleanup->Only if detected

Ryan
There is no option to change this behaviour. A double linbreak will always result in an paragraph or div, and a single linebreak will be retained.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

zeljka
Before the update, text prepared in the manner described above and pasted in JCE Editor gave a blank div for an empty line of text
<div> </div>

Ryan
[quotePost id="113405"]Before the update, text prepared in the manner described above and pasted in JCE Editor gave a blank div for an empty line of text
[/quotePost]

This only occured if the content was pasted into the Paste HTML dialog before being pasted into the editor, and this behaviour was inconsistent with other paste methods with the same content (Paste as Plain Text, CTRL + V, CTRL + SHIFT + V). The update therefore corrected the inconsistency.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.