Change textareas to editable div

https://www.phpbb.com/ideas/
Post Reply
Author:
rxu
Posted:
Tue Nov 20, 2018 5:29 pm
Rating:
Status:
New
Ideas Bot
Registered User
Posts: 442
Joined: Sat Oct 13, 2012 10:06 am

Change textareas to editable div

Post by Ideas Bot » Tue Nov 20, 2018 5:29 pm

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
Registered User
Posts: 1423
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Change textareas to editable div

Post by warmweer » Tue Nov 20, 2018 8:52 pm

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 .
A bug is a feature that hasn't made it to the manual (yet)

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3359
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: Change textareas to editable div

Post by kasimi » Tue Nov 20, 2018 9:33 pm

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: 594
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: Change textareas to editable div

Post by Toxyy » Tue Nov 20, 2018 9:51 pm

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!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][RC] Show User Activity

User avatar
warmweer
Registered User
Posts: 1423
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Change textareas to editable div

Post by warmweer » Tue Nov 20, 2018 10:05 pm

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.
A bug is a feature that hasn't made it to the manual (yet)

User avatar
JoshyPHP
Code Contributor
Posts: 969
Joined: Mon Jul 11, 2011 12:28 am

Re: Change textareas to editable div

Post by JoshyPHP » Tue Nov 20, 2018 10:35 pm

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 thing that does BBCodes in 3.2.

User avatar
3Di
Registered User
Posts: 13093
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Change textareas to editable div

Post by 3Di » Wed Nov 21, 2018 3:50 am

No, on a side note the" wysiwyg editor implementation" should take care of providing the tools needed for it.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
AmigoJack
Registered User
Posts: 5384
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Change textareas to editable div

Post by AmigoJack » Thu Nov 22, 2018 8:46 am

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 worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
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.

User avatar
warmweer
Registered User
Posts: 1423
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Change textareas to editable div

Post by warmweer » Fri Nov 23, 2018 10:11 am

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.
A bug is a feature that hasn't made it to the manual (yet)

User avatar
GanstaZ
Jr. Extension Validator
Posts: 631
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: Change textareas to editable div

Post by GanstaZ » Fri Nov 23, 2018 3:51 pm

As i understand it, there will be wysiwyg editor in the future (3.3.x branch?) so nothing more to say at the moment.
"When answer lies in the question,.. question becomes redundant!"

User avatar
JoshyPHP
Code Contributor
Posts: 969
Joined: Mon Jul 11, 2011 12:28 am

Re: Change textareas to editable div

Post by JoshyPHP » Fri Nov 23, 2018 5:26 pm

I'm not aware of any plan or any current work to implement a rich text editor in core.
I wrote the thing that does BBCodes in 3.2.

User avatar
3Di
Registered User
Posts: 13093
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Change textareas to editable div

Post by 3Di » Fri Nov 23, 2018 9:30 pm

AFAIK as an official extension, on the works.
:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
JoshyPHP
Code Contributor
Posts: 969
Joined: Mon Jul 11, 2011 12:28 am

Re: Change textareas to editable div

Post by JoshyPHP » Fri Nov 23, 2018 9:35 pm

Is there a topic about that or...?
I wrote the thing that does BBCodes in 3.2.

User avatar
3Di
Registered User
Posts: 13093
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Change textareas to editable div

Post by 3Di » Fri Nov 23, 2018 9:41 pm

:game_die: The new Dice Roller extension for phpBB 3.2 is out! :game_die:

Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

Post Reply

Return to “phpBB Ideas”

Who is online

Users browsing this forum: Senky and 3 guests