Adding Wysiwyg editor on a custom form

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
skouf
Registered User
Posts: 8
Joined: Tue Mar 05, 2019 3:50 pm

Adding Wysiwyg editor on a custom form

Post by skouf » Tue Apr 09, 2019 2:43 pm

Hello

I had to develop a new functionality on my phpbb forum.

I have a form with some fields, + a textfield.
I need this textfield to be like the wysiwyf editor of phpbb (when you post a new topic for example).

Actually, the textfield do not save any line breaks.

Looking at posting_editor.html of the prosilver template do not helps me a lot.

Any quick help regarding that ?
Last edited by HiFiKabin on Tue Apr 09, 2019 5:29 pm, edited 1 time in total.
Reason: Moved to Custom Coding

User avatar
david63
Registered User
Posts: 16058
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Adding Wysiwyg editor on a custom form

Post by david63 » Tue Apr 09, 2019 3:02 pm

skouf wrote:
Tue Apr 09, 2019 2:43 pm
I need this textfield to be like the wysiwyf editor of phpbb (when you post a new topic for example).
phpBB does not have a WYSIWYG editor so you will need to explain exactly what it is that you are trying to do.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

skouf
Registered User
Posts: 8
Joined: Tue Mar 05, 2019 3:50 pm

Re: Adding Wysiwyg editor on a custom form

Post by skouf » Tue Apr 09, 2019 3:20 pm

Hello

I just need to have a textarea with break lines. Actually, when I type some text and hit the Return key on my keyboard and save, I see all in only one line.
Line breaks do not exists anymore.

It would be nice to have some buttons for Bold or Italic, but that is not the most important.

Thanks !

User avatar
mrgoldy
Jr. Extension Validator
Posts: 1040
Joined: Tue Oct 06, 2009 7:34 pm
Location: The Netherlands
Name: Gijs

Re: Adding Wysiwyg editor on a custom form

Post by mrgoldy » Tue Apr 09, 2019 3:55 pm

Is this even regarding extension developing?
And line breaks are rendered in phpBB, by the textformatter.
And a double line break closes the previous paragraph (<p>) and opens a new one.
If you want additional spacing, just add a custom BBCode that will do just that?
phpBB Studio / ''Proud member of the Studio"

skouf
Registered User
Posts: 8
Joined: Tue Mar 05, 2019 3:50 pm

Re: Adding Wysiwyg editor on a custom form

Post by skouf » Tue Apr 09, 2019 4:00 pm

Mr Goldy I am sorry I didn't know in which topic I had to post this.
If that's not the good one maybe moderators can move it :)

My issue is a development problem. So I thought that was the right place to post :)

I will take a look at your solutions.

Thanks

Post Reply

Return to “phpBB Custom Coding”