Change textareas to editable div

https://www.phpbb.com/ideas/
Post Reply
rxu
Extensions Development Team
Posts: 3711
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Change textareas to editable div

Post by rxu »

Changing textareas to editable div (alternatively, implementing toggling between textarea and editable div) would (probably) easify working with emoji and also would be a step closer to wysiwyg editor implementation.
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Change textareas to editable div

Post by warmweer »

What do you mean by textarea(s) and what do you mean by "editable div" (the area should be writeable? or the div specifications should be editable).
Can you give an example .
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
kasimi
Former Team Member
Posts: 4900
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: Change textareas to editable div

Post by kasimi »

What he's talking about is using

Code: Select all

<textarea></textarea>
vs.

Code: Select all

<div contenteditable></div>
when composing a post, PM etc. Example: https://developer.mozilla.org/en-US/doc ... le_content
User avatar
Toxyy
Registered User
Posts: 942
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: Change textareas to editable div

Post by Toxyy »

warmweer wrote: Tue Nov 20, 2018 8:52 pm Can you give an example .
http://jsfiddle.net/bulat/w3ZFX/
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Change textareas to editable div

Post by warmweer »

ah :idea:
Thanks kasimi and Toxyy.
At first sight I would be inclined to think it's a good idea.
But, I'm not voting yet until I read, find out, know more about editable divs.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: Change textareas to editable div

Post by JoshyPHP »

It would have almost all of the inconvenience of using a rich text editor with none of the benefits. Anybody who thinks it would make anything better needs to describe specifically how. Just replacing the textarea with an editable div does nothing by itself while breaking anything that relies on the textarea API.
I wrote the library that handles markup in phpBB 3.2+.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Change textareas to editable div

Post by 3Di »

No, on a side note the" wysiwyg editor implementation" should take care of providing the tools needed for it.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
AmigoJack
Registered User
Posts: 6108
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Change textareas to editable div

Post by AmigoJack »

The outcome of such elements would always be HTML - it's like one step after having completed a WYSIWYG editor for phpBB. You should also provide an idea/implementation on how to perfectly convert the submitted HTML into BBCode again.
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Change textareas to editable div

Post by warmweer »

Ok, ik had a read and I've experimented a bit but it's all still above my current paygrade so I guess I won't vote since I can't objectively evaluate advantages nor disadvantages.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Change textareas to editable div

Post by GanstaZ »

As i understand it, there will be wysiwyg editor in the future (3.3.x branch?) so nothing more to say at the moment.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: Change textareas to editable div

Post by JoshyPHP »

I'm not aware of any plan or any current work to implement a rich text editor in core.
I wrote the library that handles markup in phpBB 3.2+.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Change textareas to editable div

Post by 3Di »

AFAIK as an official extension, on the works.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: Change textareas to editable div

Post by JoshyPHP »

Is there a topic about that or...?
I wrote the library that handles markup in phpBB 3.2+.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: Change textareas to editable div

Post by 3Di »

🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “phpBB Ideas”