PHPBB3-10418 - WYSIWYG Editor/Rich Text Editor

Discuss requests for comments/changes posted in the Issue Tracker for the development of phpBB. Upcoming releases are 3.2/Rhea and 3.3.
Post Reply
User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by brunoais » Fri Mar 30, 2012 5:50 am

AliasM2K wrote:
A_Jelly_Doughnut wrote:Cookies can be set to expire an arbitrary amount of time into the future. Say, six years. As long as the user visits your site in the next six years, the cookie data is never lost.
May be, but due to privacy problems, most browsers clear cookies after certain period of time. Hence cookies ARE NOT fool proof!
Only if you program for them to have a max expire date.
Firefox, by default, trusts the server. If you tell the user's browser to save the cookie for 5 years, it will save it for 5 years unless you changed it in its settings so that it would not do it.
Chrome seems to work the same way.
IE sounded also the same way.
...
What's your point?

User avatar
AliasM2K
Registered User
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by AliasM2K » Fri Mar 30, 2012 7:47 am

brunoais wrote:Only if you program for them to have a max expire date.
Firefox, by default, trusts the server. If you tell the user's browser to save the cookie for 5 years, it will save it for 5 years unless you changed it in its settings so that it would not do it.
Chrome seems to work the same way.
IE sounded also the same way.
...
What's your point?
Was just implying that it is better to rely on databases than on cookies to determine the default state of the users editor.

User avatar
AliasM2K
Registered User
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by AliasM2K » Fri Mar 30, 2012 7:48 am

Besides, have been working on a CKEditor based rich text editor...
Here is my progress... Just completed the toolbar. Now working on outputting BBCode.

Did my best to reproduce the current BBCode editor to a rich text editor.

What do you think?
Attachments
phpbb-rte.jpg
(198.44 KiB) Downloaded 2490 times

Senky
Extension Customisations
Extension Customisations
Posts: 283
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by Senky » Fri Mar 30, 2012 8:38 am

AliasM2K wrote:...What do you think?
I would recommend to remove bottom panel (currently showing "body p span") - We will not need it using BBCode as well as majority of users do not know what does this even mean...

User avatar
AliasM2K
Registered User
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by AliasM2K » Sat Mar 31, 2012 1:36 am

Senky wrote:I would recommend to remove bottom panel (currently showing "body p span") - We will not need it using BBCode as well as majority of users do not know what does this even mean...
Thanks for the suggestion... Implemented!
Attachments
phpbb-rte.jpg
(144.61 KiB) Downloaded 2463 times

User avatar
AliasM2K
Registered User
Posts: 82
Joined: Tue Mar 27, 2012 2:33 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by AliasM2K » Sat Mar 31, 2012 2:08 am

Made quite a lot of enhancements... What do you think?
Attachments
phpbb-rte.jpg
(119.18 KiB) Downloaded 2459 times

User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by brunoais » Sat Mar 31, 2012 8:25 am

Looks good. Please proceed.

Senky
Extension Customisations
Extension Customisations
Posts: 283
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by Senky » Sat Mar 31, 2012 9:38 am

Is there a way to quicky switch back to old textbox-style editor? This should be one of the most important features. Maybe it does not need to switch it back to textarea, but (as it works ie for vBulletin) just keep editor, but show BBCodes in text. I mean something like when you use rich text editor, you can see:
bold italic underline
and when you click on button which is to toggle editors, your message changes, so that you can see BBCodes:

Code: Select all

[b]bold[/b] [i]italic[/i] [u]underline[/u]
Hope you understand.

I would recommend also to include fullscreen option (if possible), distraction-free fullscreen, and keyboard shortcuts (just like in Word, or WordPress) - it rapidly speeds up writing...

Anyway, good job you are doing!

User avatar
brunoais
Registered User
Posts: 958
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by brunoais » Sat Mar 31, 2012 7:11 pm

^ and also:
Don't make the button unavailable when viewing the "source code". E.g. IP.B disables compeltly the buttons while viewing the source.
"Wanna change the source? Sorry, no buttons available."
I hate that!

User avatar
jsebean
Registered User
Posts: 165
Joined: Wed Nov 17, 2010 1:40 am
Location: Atlantic Canada

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Post by jsebean » Sat Mar 31, 2012 10:48 pm

brunoais wrote:^ and also:
Don't make the button unavailable when viewing the "source code". E.g. IP.B disables compeltly the buttons while viewing the source.
"Wanna change the source? Sorry, no buttons available."
I hate that!
That's default in CKEditor when you switch to source code from what I noticed. Unless this can be changed, then when the user selects the plain bbcode editor it should go back to the editor like we have now. Only issue is if you want to switch to source code editor right then and there, unless, again, the default action of disabling buttons in CKEditor when in Source code view could be changed.
-Jonah

Post Reply