minibb®
Fight the automated spam - protect your miniBB-forums,
getting the Captcha addon! Click here to read more.
Captcha Addon for miniBB
Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Master Class miniBB Community Forum / Master Class /

WYSIWYG in miniBB

 Page:  1  2  3  4  5  »» 
Anonymous
Guest
#1 | Posted: 25 Nov 2002 10:44
Reply 
just a suggestion or offtopic question

is it possible to program the post-message textbox (with php or javascript) in such a way that when you select some text and then click 'bold', the text immediately becomes bold? i mean a sort of wysiwyg editbox just like hotmail,

dre
Team
8-)
#2 | Posted: 25 Nov 2002 10:45
Reply 
Everyone who can make it - can make it :)
PeKa
Forums Member
#3 | Posted: 25 Nov 2002 23:38
Reply 
I would suggest to code that in Java, the JavaScript code would either only work in IE or would be several k long in filesize and that'll only work for the major browsers.

I was thinking of something alike but I don't have any programming skills on Java right now...
Team
8-)
#4 | Posted: 26 Nov 2002 10:13
Reply 
Definitely, if it would be Java either in JS either in Flash, it will be NOT included in official release, only as plugin...
Shaun
Guest
#5 | Posted: 28 Nov 2002 14:34
Reply 
There's a couple of Rich Text text box replacements for IE using ActiveX which work quite well on Hotscripts.com although obviously these will on work on IE and only on Windows.

Quite simple to add but do remember to code the template so that it detects the browser so that people using decent computers and browsers can also post. ;-)
Team
8-)
#6 | Posted: 28 Nov 2002 15:08
Reply 
Shaun
There is such activex trouble: only IE, only Windows... Sucks. Definitely, it would be cool, if someone can program this on Flash or Java :)
Shaun
Forums Member
#7 | Posted: 30 Nov 2002 17:13
Reply 
There's also a Javascript way of detecting selected text and cursor position in a textarea that works ok IE in Windows only but it might be useful to use.

That way users could select text in this box, and hit the BOLD button and it would stick the tags around it. Or it would insert tags at the correct cursor location and not just at the end.

It's broken in Mozilla but they do know about it.
Fritzek
Forums Member
#8 | Posted: 28 Dec 2004 09:05 | Edited by: Fritzek
Reply 
have look to http://www.interaktonline.com/ . They have a product called khtml. It's based on PHP and they have a free version of it. You can use it for producing html snippet in a textarea and save to DB. The free version is limited, but should do what you've requested. I've tested it with several browsers and it works for all majors. The only pitfall with it: you need dreamweaver to incorporate it into your code :(
Team
8-)
#9 | Posted: 28 Dec 2004 10:27
Reply 
The main problem with rich text editors like KHTML is that they contain VERY MANY attributes. We just need 6 buttons, as you see, and usually, there is a lot of work in removing not necessary code. It would be cool if someone would develop very simple rich text editor, just with a couple of function, then we could to build it in.
Fritzek
Forums Member
#10 | Posted: 28 Dec 2004 11:34
Reply 
you are right (like hunting the fly with a bazooka) ;-)
but have found another one which promises a bit more possible customizations (uses mozilla rich text api, is cross browser, use of functions can be limited - by "simply" code change):
http://www.kevinroth.com/rte/demo.php
will try this, but my problem is, how to fit into minibb. might be we can share
Team
8-)
#11 | Posted: 28 Dec 2004 11:52
Reply 
how to fit into minibb
guess, just to insert it in a template, or not? maybe change BB codes, too.
Ivan
Guest
#12 | Posted: 28 Dec 2004 19:31
Reply 
I thought that the most important in miniBB is the strong and simple code.

In addition, I all the time work with text design and like I these things but in this case this will complicate the main engine.

Why not the following simple thing: to have TWO templates - the default template (in the distribution package) and WYSIWYG template as a HTML plugin with implemented Java script in it. Then, if you want WYSIWYG text input instead of the standard one, you can simply download the plugin (or to download it and to have it for any case) and replace it.

This is a very clear and simple solution and will not complicate the PHP source code.
Anonymous
Guest
#13 | Posted: 29 Dec 2004 08:53
Reply 
I have installed one editor ant it works, however the HTML code is inserted as visible tags.

I'm looking now to find where the HTML tags are filtered in the source code. If somebody knows where, please tell me.
Team
8-)
#14 | Posted: 29 Dec 2004 11:34
Reply 
Ivan
This is ok, but the only thing we need is just this JavaScript source. I don't know many good WYSIWYG editors around, they are either too complicated or too buggy. If you know some, inform us.

Anonymous
To handle code properly, you need to set up new BB codes.
Ivan
Guest
#15 | Posted: 30 Dec 2004 01:55
Reply 
Unfortunately, all I can remember about now are IE and respectively Win only.
 Page:  1  2  3  4  5  »» 
Your reply
Bold Style  Italic Style  Image Link  URL Link 


» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, be sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
Online now: Guests - 30
Members - 0
Most users ever online: 191 [24 Dec 2007 14:33]
Guests - 191 / Members - 0

Forums are powered by miniBB®