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.

WYSIWYG Editor/Rich Text Editor

Postby jsebean » Mon Jan 10, 2011 4:44 pm

Since i dont think WYSIWYG will be included in 3.1 (if there is please correct me), what about WYSIWYG editor for phpBB 3.2.
Last edited by jsebean on Sun Mar 25, 2012 12:57 pm, edited 1 time in total.
-Jonah
Formerly known as jsbean.
User avatar
jsebean
Registered User
 
Posts: 136
Joined: Wed Nov 17, 2010 1:40 am
Location: Atlantic Canada

Re: [RFC] WYSIWYG Editor

Postby simy202 » Thu Jan 13, 2011 1:28 am

So has CKEditor been integrated into Area 51?

What kind of (x)HTML tags does ckeditor allow? And which tags don't they allow to be used?
simy202
Registered User
 
Posts: 1
Joined: Thu Jan 13, 2011 1:26 am
Location: United States

Re: [RFC] WYSIWYG Editor

Postby jsebean » Thu Jan 13, 2011 2:21 pm

Well if I understand your question correctly CKEditor is not integrated into area51.

I have read discussion related to having the team integrate CKEditor, but I didn't get much information out of it that's why I made this RFC.
-Jonah
Formerly known as jsbean.
User avatar
jsebean
Registered User
 
Posts: 136
Joined: Wed Nov 17, 2010 1:40 am
Location: Atlantic Canada

Re: [RFC] WYSIWYG Editor

Postby DavidIQ » Thu Jan 13, 2011 4:34 pm

Well the CKEditor folks want to work with us it's just a matter of figuring out what the dev team wants to do with it.
Image
User avatar
DavidIQ
MOD Team Leader
MOD Team Leader
 
Posts: 759
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth

Re: [RFC] WYSIWYG Editor

Postby jsebean » Thu Jan 13, 2011 9:04 pm

OK thanks. I saw the posts from CKEditor folks but didn't know really what was going on, that basically sums it up 8-)
-Jonah
Formerly known as jsbean.
User avatar
jsebean
Registered User
 
Posts: 136
Joined: Wed Nov 17, 2010 1:40 am
Location: Atlantic Canada

Re: [RFC] WYSIWYG Editor

Postby jsebean » Sun Jan 08, 2012 8:23 pm

From discussions and comments I've seen, CK folks seemed to not have the people to develop this and think it should be responsibility of phpBB devs. Any updates on the progress of this?

ETA: http://cksource.com/forums/viewtopic.ph ... b&start=10
-Jonah
Formerly known as jsbean.
User avatar
jsebean
Registered User
 
Posts: 136
Joined: Wed Nov 17, 2010 1:40 am
Location: Atlantic Canada

Re: [RFC] WYSIWYG Editor

Postby wGEric » Wed Jan 11, 2012 6:03 pm

I would suggest calling this a Rich Text Editor instead of a WYSIWYG. More than likely it won't be a true WYSIWYG.

Here is a BBCode parser I wrote using javascript. It uses the same tags that phpBB has for custom bbcodes ({TEXT}, {SIMPLETEXT}, etc). It can convert bbcode to html and html to bbcode. Something like this should allow custom bbcodes to be added and wouldn't change massive amounts of code if the built in bbcodes are switched to "custom" ones.

Here is an example ckeditor plugin that uses the above parser.

One question I have is about custom bbcodes or even the quote bbcode. The quote bbcode contains something like "x said:". You don't want people to be able to change "said:". You only want them to be able to change "x". Same could go for spoiler bbcodes that have something like "Spoiler:" in them.

If you set contenteditable="false" on elements then CKEditor won't allow those to be edited (seems like it may not work in some browsers but I can't find the documentation about this at the moment). So that would be the solution but do you attempt to add that attribute automatically or do you require people to add another HTML template that is used for the editor?
Eric
wGEric
Registered User
 
Posts: 506
Joined: Wed Jun 11, 2003 2:07 am

Re: [RFC] WYSIWYG Editor

Postby DavidIQ » Wed Jan 11, 2012 6:14 pm

jsbean wrote:From discussions and comments I've seen, CK folks seemed to not have the people to develop this and think it should be responsibility of phpBB devs. Any updates on the progress of this?

ETA: http://cksource.com/forums/viewtopic.ph ... b&start=10

I'm not sure how you came to that conclusion. This ticket says they've coded a BBCode parser and looks to have been merged to their main branch:
http://dev.ckeditor.com/ticket/7044

About a month ago there was also a MOD submitted for 3.0.9 (denied):
http://www.phpbb.com/customise/db/mod/ckeditor/

So it's apparently already possible with the current CKEditor release.
Image
User avatar
DavidIQ
MOD Team Leader
MOD Team Leader
 
Posts: 759
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth

Re: [RFC] WYSIWYG Editor

Postby callumacrae » Wed Jan 11, 2012 6:59 pm

That mod was pretty, but it was literally just CKEditor stuck on top of phpBB - the quotes didn't look like phpBB quotes, and the font was different. That mod would be alright to be put into phpbb, but I think that it would be better if it used only hooks, and it would need some modification so that what you see in the editor is what is put into the end post.

EDIT: I think CKEditor is ugly, though :-(
"In JavaScript, there is a beautiful, elegant, highly expressive language that is buried under a steaming pile of good intentions and blunders"
—Douglas Crockford

View my MOD, phpBB Mobile
User avatar
callumacrae
Website Team
Website Team
 
Posts: 882
Joined: Tue Apr 27, 2010 9:37 am
Location: England

Re: [RFC] WYSIWYG Editor

Postby MichaelC » Thu Jan 12, 2012 12:19 am

I think it should probably be better integrated with phpBB if its to be included in the core.
Unknown Bliss
psoTFX wrote:I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"

No unsolicited PMs please except for quotes.
User avatar
MichaelC
Website Team
Website Team
 
Posts: 797
Joined: Thu Jan 28, 2010 6:29 pm

Next

Return to [3.x] RFCs

Who is online

Users browsing this forum: No registered users and 12 guests