WYSIWYG Editor in PHPBB3

Generic, discuss anything about or related to phpBB3 (Olympus) here.
-- No support or MOD requests --
Forum rules
READ: StarTrekGuide.com Board Rules

Generic discussion of anything phpBB or phpBB3 "Olympus" related.
Only specific phpBB discussions please.

No Support or MOD Requests

Re: WYSIWYG Editor in PHPBB3

Postby Krupski » 07 Jan 2011, 19:26

Zohall wrote:any news for final release? :D


Not so sure that I'll "release" it as a mod. It's a bit too complicated for a mod I think......

By the way, I have all the bugs worked out of it (including a few that you found!).

I really need people to try it out and see if there's any hidden bug(s) that I missed, but nobody seems to be interested.

Making a mod when nobody's interested makes little sense.......
''Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto.'' -- Mikhail T. Kalashnikov
User avatar
Krupski    
Lieutenant
Lieutenant
 
Posts: 287
Joined: 26 Mar 2010, 20:25
Location: PHPBB 3.0.10 with full WYSIWYG Editor. Try it with UN: "tester" and PW: "tester"
Gender: Male
phpBB Knowledge: 5


Re: WYSIWYG Editor in PHPBB3

Postby stef775 » 08 Jan 2011, 15:04

Well, I answered your mail december 30 but still didn't get an answer.
ForumHulp.com
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign
stef775
Ensign
Ensign
 
Posts: 88
Joined: 05 Oct 2008, 16:00
Gender: Male
phpBB Knowledge: 8

Re: WYSIWYG Editor in PHPBB3

Postby heredia21 » 08 Jan 2011, 16:57

You still cant copy and paste on google chrome? on other wyswyg editors you can..
BlackBerry news come visit us!
heredia21    
Supporter
Supporter
 
Posts: 139
Joined: 10 Apr 2010, 22:15
Gender: Male
phpBB Knowledge: 4

Re: WYSIWYG Editor in PHPBB3

Postby Krupski » 09 Jan 2011, 15:38

stef775 wrote:Well, I answered your mail december 30 but still didn't get an answer.


Yes I did: viewtopic.php?p=125135#p125135


Anyway, as of now, the editor is integrated fully and all is working properly. All the bugs that I have found (and others have found) are fixed. I haven't run into any more lately, so I think it's OK.

The whole thing about paragraphs (<p> tags) is rather complicated. In certain cases, I strip the <p> out and convert </p> to a <br /> (like for code and quote BBCodes).

When pasting text from another source (like a text editor), newlines (\n) are converted to <br />.

Paragraphs that the EDITOR itself produces are kept, since a line like this:

<p>This is a test</p>

...is functionally equal to...

This is a test<br />

Now, the editor works with DOM elements. A string with a <br /> at the end is not an element. However, <p>string</p> is, so those need to be left alone.

If you can picture a flow diagram, data flows between the editor and the user. THIS data is all in element form (usually <p> paragraphs). However, data that flows between the editor and PHPBB is plain text (that is, string<br />).

It took a lot of experimentation and study of the source code of TinyMCE to understand what's going on under the hood and get it to play properly with PHPBB. I can imagine that a less stubborn person would have given up long ago (and maybe that's why PHPBB doesn't have a WYSIWYG editor out of the box).

I don't know if you know yet, but I have the user defined BBCodes also integrated in the editor. If an admin creates a BBCode, it appears in a dynamically generated drop down selector. Originally, I had all the BBCodes in the drop down (like bold, italic, code, quote, etc...) but I thought "why duplicate functions that the editor itself does better (like bold, etc..)?".

So, I took them all out. Only code and quote remain (as separate buttons) and if the admin writes new BBCodes, they appear in the toolbar automatically.

Here's a screenshot:

editor-screenshot.jpg
Editor screenshot



Notice the smiley panel to the right. It's not needed, since there's a smiley dropdown in the toolbar with all the "display on posting page" smileys visible and a selection called "More..." to access the rest (via the popup).

You should try it out now and see what you think. If you like it I'll give you all the latest code.

-- Roger
Last edited by Krupski on 09 Jan 2011, 16:01, edited 1 time in total.
''Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto.'' -- Mikhail T. Kalashnikov
User avatar
Krupski    
Lieutenant
Lieutenant
 
Posts: 287
Joined: 26 Mar 2010, 20:25
Location: PHPBB 3.0.10 with full WYSIWYG Editor. Try it with UN: "tester" and PW: "tester"
Gender: Male
phpBB Knowledge: 5

Re: WYSIWYG Editor in PHPBB3

Postby stef775 » 09 Jan 2011, 15:54

No I ment the email I send to you for sending the mod as you asked.
ForumHulp.com
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign
stef775
Ensign
Ensign
 
Posts: 88
Joined: 05 Oct 2008, 16:00
Gender: Male
phpBB Knowledge: 8

Re: WYSIWYG Editor in PHPBB3

Postby Krupski » 09 Jan 2011, 16:02

stef775 wrote:No I ment the email I send to you for sending the mod as you asked.


I don't know if I can email the files (too large), but I can put them on my server and email you the link. Give me a little while to package it all up.

-- Roger
''Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto.'' -- Mikhail T. Kalashnikov
User avatar
Krupski    
Lieutenant
Lieutenant
 
Posts: 287
Joined: 26 Mar 2010, 20:25
Location: PHPBB 3.0.10 with full WYSIWYG Editor. Try it with UN: "tester" and PW: "tester"
Gender: Male
phpBB Knowledge: 5

Re: WYSIWYG Editor in PHPBB3

Postby stef775 » 09 Jan 2011, 17:53

There should be enough space on yahoo
ForumHulp.com
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign
stef775
Ensign
Ensign
 
Posts: 88
Joined: 05 Oct 2008, 16:00
Gender: Male
phpBB Knowledge: 8

Re: WYSIWYG Editor in PHPBB3

Postby Krupski » 10 Jan 2011, 12:09

stef775 wrote:There should be enough space on yahoo


Check is in the mail... um I mean the file is in the mail... :rotfl:

Let me know if you need any help setting it up.

-- Roger
''Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto.'' -- Mikhail T. Kalashnikov
User avatar
Krupski    
Lieutenant
Lieutenant
 
Posts: 287
Joined: 26 Mar 2010, 20:25
Location: PHPBB 3.0.10 with full WYSIWYG Editor. Try it with UN: "tester" and PW: "tester"
Gender: Male
phpBB Knowledge: 5

Re: WYSIWYG Editor in PHPBB3

Postby stef775 » 10 Jan 2011, 15:26

Thanks Roger, it wil keep me from the streets
ForumHulp.com
Webhosting, Custom MODs, Technical management, MOD installation and Webdesign
stef775
Ensign
Ensign
 
Posts: 88
Joined: 05 Oct 2008, 16:00
Gender: Male
phpBB Knowledge: 8

Re: WYSIWYG Editor in PHPBB3

Postby sputnik » 08 Feb 2011, 04:46

Hello Roger,
if you can send me the files too, i will test to setting up in my (test-)forum.
I search a usable editor and can give you objective feedback (implementing into phpbb3 3.0.8).

With best regards
Sputnik
sputnik
Crewman
Crewman
 
Posts: 1
Joined: 08 Feb 2011, 04:02
Gender: Male
phpBB Knowledge: 2

PreviousNext

Return to Olympus Discussions

Who is online

Users browsing this forum: MSNbot Media and 4 guests