Welcome, Guest. Please Login or Register.
April 29, 2024, 03:15:20 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.2] Wysiwyg Editor « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Beta 1.5.2] Wysiwyg Editor  (Read 22233 times)
A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
[Beta 1.5.2] Wysiwyg Editor
« on: May 09, 2003, 03:59:03 PM »
Reply with quote

WYSIWYG (What You See Is What You Get) Post Editor
..::: Notes :::..

* This mod will only work with IE 5.5 or later.
* The security of the forum will not be effected (I hope so) cause the HTML is converted to BBC after submitting.
* Load time will not be effected, The Editor and its java script will be only loaded when a user activates it.
* I have done a rough conversion of some samples I found in the internet to let this work.. so more optimizing of the code I guess is needed.
* The following tags are not supported yet: Preformatted Text,Left Align, Centered, Right Align, Flash, Teletype, Code, Quote, Table, Table Row, Table Column.
* If you can improve this mod, please do so without asking for my permission.


..::: Install :::..

1- Upload the files in the zip to your yabbse folder in this order:
  • Make a directory under your yabbse folder and name it images and upload all images in the zip file to it.
  • Upload wysiwyg.html , wysiwyg_color.html , wysiwyg_image.html , editor.js to your yabbse folder.
2- Open Post.php and look for (it should be somewhere in line 1304):<img src="' . $imagesdir . '/list.gif" align="bottom" width="23" height="22" alt="' . $txt[261] . '" border="0" /></a>add after it the following:<br><input type="button" value="WYSIWYG" title="Activate the WYSIWYG editor!" onclick="WYOpenModal(this.form)">
<script language="javascript" type="text/javascript">
<!--
function WYOpenModal(theform) {
c = showModalDialog("wysiwyg.html","","help:no; center:yes; status:no; dialogHeight:440px; dialogWidth:680px; scroll:no");
if (c) {
theform.message.value += c;
theform.message.focus();
}
}
// -->
</script>



..::: Files :::..

Download file (size:18kb)


..::: Preview :::..
-wysiwyg editor image preview. HERE
-post image preview. HERE


..::: Credits :::..

(c) All copyrights are maintained in the files.


cheer
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #1 on: May 10, 2003, 03:11:24 AM »
Reply with quote

Looks cool.  Any way to integrate it into the post screen though?
Logged

Tilton53
Jr. Member
**
Posts: 73


I'm a llama!

Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #2 on: May 10, 2003, 04:21:16 AM »
Reply with quote

Cool
Logged
A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #3 on: May 10, 2003, 08:00:01 AM »
Reply with quote

Quote from: David on May 10, 2003, 03:11:24 AM
Looks cool.  Any way to integrate it into the post screen though?
Yes it can be integrated with the post .. and that what I had in mind the first time .. but considering the load time that this will generate and that not all user will like to use it .. I figure it is best this way.


Quote from: Tilton53 on May 10, 2003, 04:21:16 AM
Cool
thanks :)


cheer
Logged

Ben_S
Disciple of Joe
Support Team
YaBB God
*****
Posts: 1586


I Love YaBB SE!

WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #4 on: May 10, 2003, 12:17:55 PM »
Reply with quote

Quote from: Arab_ME on May 10, 2003, 08:00:01 AM
Quote from: David on May 10, 2003, 03:11:24 AM
Looks cool.  Any way to integrate it into the post screen though?
Yes it can be integrated with the post .. and that what I had in mind the first time .. but considering the load time that this will generate and that not all user will like to use it .. I figure it is best this way.

Prehaps an option to disable in in the profile?
Logged
Norbert
Noobie
*
Posts: 28


WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #5 on: May 10, 2003, 03:24:46 PM »
Reply with quote

Great work.
Logged
Daniel Hofverberg
YaBB God
*****
Posts: 582


WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #6 on: May 10, 2003, 06:18:12 PM »
Reply with quote

I agree with Scotty. An option in the profile to enable/disable the Wysiwyg editor would be preferable. Otherwise it seems like a great idea with such an editor.

Logged
Norbert
Noobie
*
Posts: 28


WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #7 on: May 10, 2003, 06:30:47 PM »
Reply with quote

There is a bug in the link function:

So it is: http://1nd.de
It should be: http://1nd.de
Logged
A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #8 on: May 10, 2003, 06:48:14 PM »
Reply with quote

Quote from: Scotty_B on May 10, 2003, 12:17:55 PM
Prehaps an option to disable in in the profile?
Quote from: Daniel Hofverberg on May 10, 2003, 06:18:12 PM
I agree with Scotty. An option in the profile to enable/disable the Wysiwyg editor would be preferable. Otherwise it seems like a great idea with such an editor.
Yes that's what VB uses now and hopefully this mod will do.. but am using HTMLarea old version their new version (still in alpha) will support other browser.. so I guess it is better to wait for it before altering any additional file and database.

cheer
Logged

A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #9 on: May 10, 2003, 06:52:29 PM »
Reply with quote

Quote from: Norbert on May 10, 2003, 03:24:46 PM
Great work.
Thanks

Quote from: Norbert on May 10, 2003, 06:30:47 PM
There is a bug in the link function:

So it is: http://1nd.de
It should be: http://1nd.de
You mean there is an additional quotation mark! I'll check it.

cheer
« Last Edit: May 10, 2003, 06:54:06 PM by Arab_ME » Logged

A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #10 on: May 10, 2003, 10:01:50 PM »
Reply with quote

Fix http links:

If you have already installed the mod before this fix:

* open editor.js and look for:
var tag = "[" + linktype + "=" + link + "]";* add before it:
link = link.replace(/"/g,"");

sometimes these regexp drive me crazy  :)


cheer
Logged

Norbert
Noobie
*
Posts: 28


WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #11 on: May 10, 2003, 10:23:50 PM »
Reply with quote

QuoteFix http links ....
It works now.
Logged
PHPlugin
Sr. Member
****
Posts: 465


WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #12 on: May 11, 2003, 08:46:55 PM »
Reply with quote

Wonderful, amazing, impressive! WOOT!
I love it!
Logged
Tilton53
Jr. Member
**
Posts: 73


I'm a llama!

Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #13 on: May 12, 2003, 04:06:58 AM »
Reply with quote

awesome I wish I could program like that!
Logged
A.M.A.
YaBB God
*****
Posts: 685


.:: :-) ::.

evolve_xp@hotmail.com WWW
Re:[Beta 1.5.2] Wysiwyg Editor
« Reply #14 on: May 12, 2003, 08:21:10 AM »
Reply with quote

Quote from: PHPlugin on May 11, 2003, 08:46:55 PM
Wonderful, amazing, impressive! WOOT!
I love it!
Thanks


Quote from: Tilton53 on May 12, 2003, 04:06:58 AM
awesome I wish I could program like that!
Thanks, tho am not the one who wrote the wysiwyg editor.

cheer
Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Beta 1.5.2] Wysiwyg Editor « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.046 seconds with 20 queries.