phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

WYSIWYG Editor/Rich Text Editor

Publish your own request for comments or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.1/Ascraeus and 3.2/Arsia.

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby wGEric » Thu Jun 28, 2012 12:12 am

When I say doesn't support I mean that it shows the raw bbcode in the rich text mode. It doesn't have a WYSIWYG component.

Rich Text:
This is bold and here is a [custom]custom bbcode[/custom]


Raw (spaces added to prevent bbcode from rendering):
This is [b ]bold[/b] and here is a [custom]custom bbcode[/custom]
Eric
wGEric
Registered User
 
Posts: 506
Joined: Wed Jun 11, 2003 2:07 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby Oleg » Thu Jun 28, 2012 2:45 am

Since most of the time you would be editing your own posts, and other times it would be moderators editing users' posts, I would say as long as it is possible to edit both bbcode and wysiwyg posts I might support an implementation that restricts editing to bbcode editor once bbcodes are used.

However I would prefer to see at least a full development team vote on this before accepting such a proposal.
Oleg
3.1 Release Manager
3.1 Release Manager
 
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby brunoais » Thu Jun 28, 2012 2:07 pm

(about the last 4 posts)

I sure hope that phpBB get's a proper WYSIWYG editor that is not like IP.B's half "assed" work. The IP.B's editor has loads of problems and even non custom BBCode is not properly rendered, sometimes. The only thing the IP.B's editor is flawless to show is italic, bold, underline and paragraphs. The rest has some flaw here or there.

My idea for custom BBCodes is simple even though it may need improvement:

There's simple BBCode where what is supposed to be applied is a simple replacement of data to HTML (a checkbox may do that trick).
There's BBCode like a BBCode for youtube, where something different, like an image, is more appropriate than the direct translation using the replacement.

For those, there's an extra textarea that the administrator may use for the replacement in the WYSIWYG editor. It's supposed to be something easier to the browser or easier to the eyes.
If the checkbox is selected, that textarea is ignored.
If this textarea is empty (after stripping all blank characters) and the checkbox is not selected then use no substitution in the WYSIWYG editor and leave the BBCode as-is (like the current editor).


Just to make it clear about those 2.
The checkbox is supposed to be used for markup & styling like the bold, underline, quote, code... (even though they are already in the core) All that can be directly replaced with the replacing equivalent.

The textarea is supposed to be used for youtube (youtube videos), iframes, divs with AJAX content, etc... and any other thing that uses external calls or uses flash or whatnot.
I think with this we would be ready for anything that this system may stumble upon.
brunoais
Registered User
 
Posts: 626
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby Meis2M » Mon Jul 23, 2012 12:23 pm

i think Tinymce is better for phpBB and its working perfect with custom bbcode and smiles.
im working again on my project
http://www.php-bb.ir/test/posting.php?mode=post&f=2

u can try it:
test
123456

for this time my project working with active full HTML in posting but BBCODE base is not very good. bbcode plugin in tinymce has some bugs but it can be fixed simple.
see that:
http://php-bb.ir/test/tinyZo/plugins/bbcode/

this bbcode plugin create for punBB and phpBB plugin bbcode must build.
User avatar
Meis2M
Registered User
 
Posts: 213
Joined: Fri Apr 23, 2010 10:18 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby Senky » Mon Jul 23, 2012 1:15 pm

Your Tinymce editor does not work perfect with custom bbcodes - if I understand, all custom bbcodes are hidden in one button labeled as "BB" (the second one in the first row), but it only shows bbcode just in the same way as plain textarea. Custom BBcodes mus be parsed to HTML just the same as built in Tinymce by default.
Senky
Registered User
 
Posts: 222
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby Senky » Sat Aug 04, 2012 4:56 pm

emosbat posted new topic into MOD development forum, presenting his eMosbat's TinyMCE Integration. I think it would be worth of contacting him and talk a little bit about his version of WYSIWYG editor. It supports custom BBCodes already.

I have not tested it, yet, but it seems to be cool and fine-developed. Maybe we could be able to pull WYSIWYG editor in 3.1 with integrating his MOD into the core.
Senky
Registered User
 
Posts: 222
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby Meis2M » Sat Aug 04, 2012 5:55 pm

Senky wrote:emosbat posted new topic into MOD development forum, presenting his eMosbat's TinyMCE Integration. I think it would be worth of contacting him and talk a little bit about his version of WYSIWYG editor. It supports custom BBCodes already.

I have not tested it, yet, but it seems to be cool and fine-developed. Maybe we could be able to pull WYSIWYG editor in 3.1 with integrating his MOD into the core.


i tested it. there are many bugs.
User avatar
Meis2M
Registered User
 
Posts: 213
Joined: Fri Apr 23, 2010 10:18 am

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby Senky » Sat Aug 04, 2012 6:00 pm

Better to have bugs (which can be fixed), than have nothing... I just proposed new possibility...
Senky
Registered User
 
Posts: 222
Joined: Thu Jul 16, 2009 4:41 pm

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby DavidIQ » Sat Aug 04, 2012 6:04 pm

Custom BBCode handling either needs to work if it's in there or not be used at all. Undoing the damage of a faulty BBCode implementation is no easy task.
Image
User avatar
DavidIQ
MOD Team Leader
MOD Team Leader
 
Posts: 758
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth

Re: [RFC] WYSIWYG Editor/Rich Text Editor

Postby EXreaction » Sat Aug 04, 2012 6:41 pm

It seems fairly hackish, but I'm not sure if it's due to TinyMCE or what. I've tested it and there are a few issues currently.

I've created a branch of develop for TinyMCE based on that mod (with a few fixes I noticed):
https://github.com/EXreaction/phpbb3/tr ... re/TinyMCE
My phpBB3 Mods: Advertisement Management | User Blog Mod | Anti-Spam ACP | Advanced Subscriptions | One Click Ban | From Author PM List | FAQ Manager | Forum Sponsors | Soft Delete | Auto Database Backup | Drag 'n Drop Forum List | HTML Ranks | Enable HTML
User avatar
EXreaction
Development Team
Development Team
 
Posts: 1259
Joined: Sat Sep 10, 2005 2:15 am

Previous Next

Return to [3.x] RFCs

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 10 guests