AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Solved] When paste text from notepad into post column, that added code

6 Posts
2 Users
0 Reactions
1,229 Views
adisaputro
Posts: 130
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@adisaputro)
Estimable Member
Joined: 7 years ago
[#23496]

I'm using wpforo v 2.0.7. When I copy and paste text from notepad into post column to make a new post, there added <br/> code automatically. Normally if I copy and paste text into post column, that only added <p>Text</p>. This is the screenshot:

How to fix this?

 

wpForo Version
2.0.7
WordPress Version
6.0.2

5 Replies
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

Hi @adisaputro,

wpForo Editor has two types of lines:

1: in this case, it would be 2 lines of <p> tag

<p>Text</p>
<p>Text</p>

Text

Text

2: in this case, it would be <br> tag in the line:

<p>Text<br/>Text</p>

Text
Text


1 Reply
adisaputro
(@adisaputro)
Joined: 7 years ago

Estimable Member
Posts: 130
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Posted by: @chris

Hi @adisaputro,

wpForo Editor has two types of lines:

1: in this case, it would be 2 lines of <p> tag

<p>Text</p>
<p>Text</p>

Text

Text

2: in this case, it would be <br> tag in the line:

<p>Text<br/>Text</p>

Text
Text

Can you elaborate?

How to automaticaly using option 1 when paste text from notepad?

How to stop automatically adding <br> tags to post content?


adisaputro
Posts: 130
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@adisaputro)
Estimable Member
Joined: 7 years ago

I am sorry, but I didn't experience this in wpforo version 1.9


1 Reply
Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@adisaputro,

If you copy from Text editor than the text would be pasted with br, there is no option to copy the text with one break type and paste it with another break type.

 


adisaputro
Posts: 130
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@adisaputro)
Estimable Member
Joined: 7 years ago

Finally I can fix this, thank you very much


Share: