[BETA] Rich Text Editor cross browser (IE Mozilla Firebird)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
eCardMax.com
Registered User
Posts: 61
Joined: Thu Jan 01, 2004 11:10 am
Contact:

[BETA] Rich Text Editor cross browser (IE Mozilla Firebird)

Post by eCardMax.com »

##############################################
## MOD Title: Rich Text Editor MOD
## MOD Author: Jimbo Hong http://www.ecardmax.com
## MOD Description: Format your post like you working with FrontPage
##
## MOD Version: 2
##
## Installation Level: Intermediate
## Installation Time: ~10 minutes
##
## Files To Edit (6) :
## phpbb/viewtopic.php + posting.php + privmsg.php
## phpbb/includes/topic_review.php
## phpbb/templates/subSilver/subSilver.css + overall_header.tpl
##
## Included Files (1) :
## phpbb/templates/subSilver/posting_body_ie.tpl

## Included new Folder (1) : richedit
##
###############################################


Image

it's time to turn <textarea> into a powerful Rich Text HTML Editor. Don't force your users to learn another set of markup tags. With this MOD you can format your posts just like you would in MS. FrontPage!

I just submitted this MOD to MOD database and waiting for MOD Team approve it.

You can take a look at my Demo here
http://www.ecardmax.com/richedit/phpbb/index.php

Download: http://www.ecardmax.com/richedit/phpbb/ ... ic.php?t=4

This is the first time I write the MOD for phpBB, please give me some feedback and hope you guys will like this MOD.

Jim
Last edited by eCardMax.com on Wed Feb 11, 2004 5:19 pm, edited 1 time in total.
zayin
Registered User
Posts: 712
Joined: Mon Jun 16, 2003 12:01 am
Location: Middletown, America
Contact:

Post by zayin »

Sweet! It even works with the dvorak keyboard layout and rtl languages.

A couple semi-problems...
  1. if JS is disabled, the link to a normal textarea version doesn't work
  2. cut, copy and paste cause nasty errors with Firebird
  3. line spacing is doubled (approximately) in IE6
  4. wrap code and php insert extra newlines before and after in IE6
...and one real security issue which I'll PM you about because I don't want to explain how to exploit it here.
"You can only find the truth with logic if you have already found the truth without it."
Custom Profiles MOD: add and manage profile fields
CuriousGeorge
Registered User
Posts: 64
Joined: Mon Oct 08, 2001 2:44 pm
Location: Insert witty comment that reveals nothing about where you live here.
Contact:

Post by CuriousGeorge »

Oohhhh, I liiiike th looks of this one 8)
Programming trains you for parenting pretty well. The long sleepless nights, the time spent explaining very simple things to really stoopid people, and the ability to tune out the rest of the world all really help when dealing with children.
proper_bo
Registered User
Posts: 656
Joined: Mon Aug 18, 2003 5:49 pm
Location: Heaton Moor

Post by proper_bo »

That is really nice.

One suggestion for you:
Keep the original smilie panel, it makes the smilies a much simpler affair.

The link to the original post system works fine your test forum.
User avatar
eCardMax.com
Registered User
Posts: 61
Joined: Thu Jan 01, 2004 11:10 am
Contact:

Post by eCardMax.com »

zayin wrote: if JS is disabled, the link to a normal textarea version doesn't work


>>It seems that user must enable the javascript :) otherwise they can't use the Text Area normal editor either (the basic editor version uses javascript to insert BBcode)
cut, copy and paste cause nasty errors with Firebird

>>Mozilla & Firebird's user must do something with their browser configuration in order to make it works. Read this: http://www.mozilla.org/editor/midasdemo ... prefs.html
[*]line spacing is doubled (approximately) in IE6

>>One major difference between Mozilla and Internet Explorer that affects designMode is the generated code in the editable document. When you hit enter key IE will create the code <P> - Mozilla will create <br>. By the way, user can use Shift Enter to create the single line in IE.
wrap code and php insert extra newlines before and after in IE6

>>:) - But it still looks nice, doesn't it? I think it's acceptable.
...and one real security issue which I'll PM you about because I don't want to explain how to exploit it here.

>>Thanks zayin. I'm waiting for your PM

Jim
User avatar
eCardMax.com
Registered User
Posts: 61
Joined: Thu Jan 01, 2004 11:10 am
Contact:

Build a world clock

Post by eCardMax.com »

Hi guys !

My Rich Text Editor allows user quick check Calendar & World clock.

My world clock database is missing some Country & City - I hope you guy can help me build the full list.

Below is a list I already had:

Format : Country | City | GMT
France|Paris|+1
Germany|Berlin|+1
The Netherlands|Amsterdam|+1
Belgium|Brussels|+1
Austria|Vienna|+1
Spain|Madrid|+1
Italy|Rome|+1
Switzerland|Bern|+1
Sweden|Stockholm|+1
Norway|Oslo|+1
Greece|Athens|+2
Finland|Helsinki|+2
Turkey|Istanbul|+2
Israel|Jerusalem|+2
Zimbabwe|Harare|+2
Kuwait|Kuwait City|+3
Kenya|Nairobi|+3
Saudi Arabia|Riyadh|+3
Russia|Moscow|+3
UAE|Abu Dhabi|+4
Oman|Muscat|+4
Georgia|Tblisi|+4
Russia|Volgograd|+4
Russia|Yekateringburg|+5
Pakistan|Islamabad|+5
Afganistan|Kabul|+5
Russia|Novosibirsk|+6
Indonesia|Jakarta|+7
Thailand|Bang kok|+7
Vietnam|Hanoi|+7
China|Beijing|+8
China|Hong Kong|+8
Australia|Perth|+8
Korea|Seoul|+9
Japan|Tokyo|+9
Australia|Melbourne|+10
Australia|Sydney|+10
Russia|Vladivostok|+10
Russia|Magadan|+11
Norfolk Island|Norfolk Island|+11,30
New Zealand|Wellington|+12
Fiji|Suva|+12
Marshall Islands|Marshall Islands|+12
Enderbury Kiribati|Rawaki Islands|+13
Kiritibati|Line Islands|+14
Cape Verde Islands|Azores|-1
Brazil|Brasilia|-3
Argentina|Buenos Aires|-3
Guyana|Georgetown|-3
Venezuella|Caracas|-4
Bolivia|La Paz|-4
Columbia|Bogota|-5
Peru|Lima|-5
USA|New York|-5
USA|Chicago|-6
Mexico|Mexico City|-6
Canada|Saskatchewan|-6
USA|Orem|-7
USA|Denver|-7
Canada|Calgary|-7
USA|Seattle|-8
USA|Los Angeles|-8
USA|Anchorage|-9
USA|Honolulu|-10
Samoa|Apai|-11
Marshal Islands|Eniwetok|-12


Thanks a lot!
Jim
proper_bo
Registered User
Posts: 656
Joined: Mon Aug 18, 2003 5:49 pm
Location: Heaton Moor

Post by proper_bo »

You missed the most obvious one lol:

United Kingdom | GMT +0
User avatar
eCardMax.com
Registered User
Posts: 61
Joined: Thu Jan 01, 2004 11:10 am
Contact:

Post by eCardMax.com »

Hi !

About the world clock I got the full list from SimonT (thanks so much) - I post the list here maybe someone will need that.

By the way, I already fixed some bug for my Rich Text Editor Version 2.0 Beta. You guy can come here to download it

http://www.ecardmax.com/richedit/phpbb/ ... ic.php?t=4

Code: Select all

Algeria|Algiers |1|
Argentina|Buenos Aires|-3|
Argentina|Cordoba |-3|
Armenia|Jerevan |3|
Australia|Adelaide|9.30|
Australia|Brisbane|10|
Australia|Broken Hill |10.30|
Australia|Canberra|10|
Australia|Christmas Island|7|
Australia|Darwin|9.30|
Australia|Hobart|10|
Australia|Lord Howe Island|10.30|
Australia|Melbourne |10|
Australia|Perth |8|
Australia|Sydney|10|
Austria|Innsbruck |1|
Austria|Salzburg|1|
Austria|Vienna|1|
Azerbaijan|Baku|3|
Bahamas|Nassau|-5|
Bangladesh|Dhaka |6|
Belarus|Minsk |2|
Belgium|Anvers|1|
Belgium|Brussels|1|
Bolivia|La Paz|-4|
Brazil |Belem |-3|
Brazil |Belo Horizonte|-3|
Brazil |Brazilia|-3|
Brazil |Fortaleza |-3|
Brazil |Porto Alegre|-3|
Brazil |Rio De Janeiro|-3|
Brazil |Salvador|-3|
Brazil |Sao Paulo |-3|
Bulgaria |Burgas|2|
Bulgaria |Sofia |2|
Canada |Calgary |-7|
Canada |Edmonton|-7|
Canada |Montreal|-5|
Canada |Ottawa|-5|
Canada |Quebec|-5|
Canada |Toronto |-5|
Canada |Vancouver |-8|
Canada |Winnipeg|-6|
Chile|Santiago|-4|
China|Beijing |8|
China|Chengdu |8|
China|Chongqing |8|
China|Guangzhou |8|
China|Harbin|8|
China|Hong Kong |8|
China|Mukden|8|
China|Nanjing |8|
China|Peking|8|
China|Shanghai|8|
China|Tientsin|8|
China|Urumqi|8|
China|Wuhan |8|
China|Xi'An |8|
Colombia |Barranquilla|-5|
Colombia |Medellin|-5|
Columbia |Santa Fe De Bogota|-5|
Costa Rica|San Jose|-6|
Cote D'Ivoire|Abidjan |0|
Cuba |Havana|-5|
Czechoslovakia |Brno|1|
Czechoslovakia |Prague|1|
Denmark|Alborg|1|
Denmark|Copenhhagen |1|
Dominican Republic |Santo Domingo |-4|
Ecuador|Guayaquil |-5|
Ecuador|Quito |-5|
Egypt|Alexandria|2|
Egypt|Cairo |2|
El Salvador|San Salvador|-6|
England|Birmingham|0|
England|London|0|
England|Manchester|0|
England|Nottingham|0|
Estonia|Tallin|2|
Estonia|Tartu |2|
Ethiopia |Adis Abeba|3|
Finland|Helsinki|2|
Finland|Rovaniemi |2|
France |Bordeaux|1|
France |Marseille |1|
France |Nantes|1|
France |Nice|1|
France |Paris |1|
France |Rouen |1|
France |Toulouse|1|
Georgia|Tbilisi |3|
Germany|Berlin|1|
Germany|Frankfurt |1|
Germany|Hamburg |1|
Germany|Munich|1|
Greece |Athens|2|
Greece |Salonika|2|
Guatemala|Guatemala |-6|
Haiti|Port-au-Prince|-5|
Honduras |Tegucigalpa |-6|
Hungary|Budapest|1|
Hungary|Hodmezovasarhely|1|
Iceland|Reykjavik |0|
India|Bangalore |5.30|
India|Bombay|5.30|
India|Calcutta|5.30|
India|Delhi |5.30|
India|Madras|5.30|
Iran |Tehran|3.30|
Iraq |Baghdad |3|
Ireland|Cork|0|
Ireland|Dublin|0|
Israel |Jerusalem |2|
Israel |Tel Aviv|2|
Italy|Bologna |1|
Italy|Cagliari|1|
Italy|Genova|1|
Italy|Milan |1|
Italy|Naples|1|
Italy|Palermo |1|
Italy|Rome|1|
Jamaica|Kingston|-5|
Japan|Nagoya|9|
Japan|Osaka |9|
Japan|Tokyo |9|
Jordan |Amman |2|
Kazakhstan|Alma-Ata|5|
Kazakhstan|Celinograd|5|
Kazakhstan|Semipalatinsk |5|
Kenya|Nairobi |3|
Kuwait |Al-Kuwayt |3|
Latvia |Riga|2|
Lebanon|Beirut|2|
Liberia|Monrovia|0|
Libya|Tripoli |1|
Lituania |Kaunus|2|
Lituania |Vilnius |2|
Macedonia|Skopje|1|
Madagascar|Antananarivo|3|
Mexico |Acapulco|-6|
Mexico |Cancun|-6|
Mexico |Chihuahua |-6|
Mexico |Ciudad Juarez |-6|
Mexico |Culiacan|-7|
Mexico |Durango |-6|
Mexico |Ensenada|-8|
Mexico |Guadalajara |-6|
Mexico |Hermosillo|-7|
Mexico |Leon|-6|
Mexico |Matamoros |-6|
Mexico |Mazatlan|-7|
Mexico |Merida|-6|
Mexico |Mexicali|-8|
Mexico |Mexico City |-6|
Mexico |Monterrey |-6|
Mexico |Nogales |-7|
Mexico |Nuevo Laredo|-6|
Mexico |Puebla|-6|
Mexico |San Luis Potosi |-6|
Mexico |Tampico |-6|
Mexico |Tijuana |-8|
Mexico |Torreon |-6|
Mexico |Veracruz|-6|
Mongolia|Ulaanbaatar |8|
Morocco|Casablanca|0|
Morocco|Rabat |0|
Myanmar|Yangon|6.30|
Netherlands|Amsterdam |1|
Netherlands|Rotterdam |1|
New Guinea|Port Moresby|10|
New Zealand|Auckland|12|
New Zealand|Wellington|12|
Nicaragua|Managua |-6|
Nigeria|Lagos |1|
Northern Ireland|Belfast |0|
Norway|Bergen|1|
Norway|Oslo|1|
Norway|Trondheim |1|
Pakistan|Karachi |5|
Pakistan|Lahore|5|
Panama|Panama|-5|
Peru|Lima|-5|
Philippines|Manila|8|
Poland|Danzig|1|
Poland|Krakow|1|
Poland|Poznan|1|
Poland|Warsaw|1|
Portugal|Lisboa|0|
Portugal|Lisbon|0|
Portugal|Porto |0|
Puerto Rico|San Juan|-4|
Romania|Brasov|2|
Romania|Bucharest |2|
Russia|Archangel 'sk |3|
Russia|Bransk|2|
Russia|Chita |8|
Russia|Irkutsk |7|
Russia|Jakutsk |8|
Russia|Jaroslavl |3|
Russia|Jekaterinburg |4|
Russia|Kaliningrad |3|
Russia|Krasnojarsk |6|
Russia|Moskow|3|
Russia|Novgorod|3|
Russia|Novosibirsk |6|
Russia|Omsk|5|
Russia|Perm|4|
Russia|Samara|3|
Russia|St. Petersburg|2|
Russia|Tomsk |6|
Russia|Tula|2|
Russia|Tver|3|
Saudi Arabia|Ar-Riyad|3|
Saudi Arabia|Jiddah|3|
Saudi Arabia|Makkah|3|
Scotland|Aberdeen|0|
Scotland|Edinburgh |0|
Scotland|Glasgow |0|
Senegal|Dakar |0|
Singapore|Singapore |8|
South Africa|Cape Town |2|
South Africa|Johannesburg|2|
South Africa|Pretoria|2|
South Korea|Seoul |9|
Spain|Barcelona |1|
Spain|Bilbao|1|
Spain|Madrid|1|
Spain|Malaga|1|
Spain|Sevilla |1|
Spain|Zaragoza|1|
Sudan|Khartoum|2|
Sweden|Gothenburg|1|
Sweden|Stockholm |1|
Switzerland|Berne |1|
Switzerland|Zurich|1|
Syria|Damascus|2|
Syria|Halab |2|
Taiwan|T'Aipei |8|
Tanzania|Dar es Salaam |3|
Thailand|Bangkok |7|
Tunisia|Tunis |1|
Turkey|Adana |2|
Turkey|Ankara|2|
Turkey|Istanbul|2|
Uganda|Kampala |3|
Ukraine|Kharkiv |2|
Ukraine|Kyyiv |2|
Ukraine|Odesa |2|
United States|Abilene |-6|
United States|Akron |-5|
United States|Albany|-5|
United States|Albuquerque |-7|
United States|Amarillo|-6|
United States|Anchorage |-9|
United States|Atlanta |-5|
United States|Baltimore |-5|
United States|Billings|-7|
United States|Boise |-7|
United States|Boston|-5|
United States|Buffalo |-5|
United States|Butte |-7|
United States|Cedar Rapids|-6|
United States|Charleston|-5|
United States|Charlotte |-5|
United States|Chicago |-6|
United States|Cincinnati|-5|
United States|Cleveland |-5|
United States|Colorado Springs|-7|
United States|Dallas|-6|
United States|Dayton|-5|
United States|Denver|-7|
United States|Des Moines|-6|
United States|Detroit |-5|
United States|Duluth|-6|
United States|El Paso |-7|
United States|Eugene|-8|
United States|Evansville|-6|
United States|Fargo |-6|
United States|Flint |-5|
United States|Fort Wayne|-5|
United States|Fort Worth|-6|
United States|Gary|-6|
United States|Grand Rapids|-5|
United States|Great Falls |-7|
United States|Hartford|-5|
United States|Honolulu|-10|
United States|Houston |-6|
United States|Indianapolis|-5|
United States|Jackson |-6|
United States|Jacksonville|-5|
United States|Kansas City |-6|
United States|Knoxville |-5|
United States|Lansing |-5|
United States|Las Vegas |-8|
United States|Lincoln |-6|
United States|Little Rock |-6|
United States|Los Angeles |-8|
United States|Louisville|-5|
United States|Lubbock |-6|
United States|Memphis |-6|
United States|Miami |-5|
United States|Midland |-6|
United States|Milwaukee |-6|
United States|Minneapolis |-6|
United States|Mobile|-6|
United States|Moline|-6|
United States|Montgomery|-6|
United States|Nashville |-6|
United States|New Orleans |-6|
United States|New York|-5|
United States|Newark|-5|
United States|Norfolk |-5|
United States|Oakland |-8|
United States|Ogden |-7|
United States|Oklahoma City |-6|
United States|Omaha |-6|
United States|Philadelphia|-5|
United States|Phoenix |-7|
United States|Pittsburgh|-5|
United States|Portland|-8|
United States|Providence|-5|
United States|Pueblo|-7|
United States|Rapid City|-7|
United States|Reno|-8|
United States|Richmond|-5|
United States|Rochester |-5|
United States|Rockford|-6|
United States|Sacramento|-8|
United States|Salem |-8|
United States|Salt Lake City|-7|
United States|San Antonio |-6|
United States|San Bernardino|-8|
United States|San Diego |-8|
United States|San Francisco |-8|
United States|Savannah|-5|
United States|Seattle |-8|
United States|Shreveport|-6|
United States|Sioux Falls |-6|
United States|Spokane |-8|
United States|Springfield |-6|
United States|St. Louis |-6|
United States|St. Paul|-6|
United States|Tacoma|-8|
United States|Tampa |-5|
United States|Topeka|-6|
United States|Tucson|-7|
United States|Tulsa |-6|
United States|Washington|-5|
United States|Wichita |-6|
United States|Wichita Falls |-6|
Uruguay|Montevideo|-3|
Uzbekistan|Taskent |5|
Venezuela|Caracas |-4|
Venezuela|Maracaibo |-4|
Vietnam|Ha Noi|7|
Vietnam|Saigon|7|
Wales|Cardiff |0|
Yugoslavia|Belgrade|1|
Zaire|Kinshasa|1|
Zimbabwe|Harare|2|
:wink:
Mohd
Registered User
Posts: 263
Joined: Mon Jul 15, 2002 9:06 pm
Contact:

Post by Mohd »

:( My country is not in the list

Bahrain +3
Visit My Site Mohd Web Site!
My Current mod is PaFileDb Integration 0.0.8
Demo: Click Here
No support via PM
[cR@zY]Null
Registered User
Posts: 160
Joined: Sun Aug 10, 2003 1:23 pm

Post by [cR@zY]Null »

Problems:

1- It doesn't work in Opera 7.23 (not here at least)

2- Excample, if I want to have my typefont Comic Sans I click it on and start typing. The font stays standard. Strange, the font only changes when I select the line of text and than change the font type!

Keep on the good work!

0
danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 »

why pre modded files again?

why can't you releasew the install script that has a list of code to add to files?

most of us do have mods installed, and by doing this, it will loose the mod's.

so please release the proper install script or something that allows users to manualy mod the files rather than have the pre modded files

i think thats the reason why it got locked in the first place.
xmulder
Registered User
Posts: 429
Joined: Thu Jun 27, 2002 8:37 pm

Post by xmulder »

doesnt work with Opera! All i can see is a text box squashed up to the left of the screen then a big white bit.... asside from that it works fine when you click the "go back to notmal view" link =/
User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix »

doesn't work with my Firebird :
Erreur : uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISelection.getRangeAt]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://www.ecardmax.com/richedit/phpbb/ ... /editor.js :: FormatText :: line 510" data: no]
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:
zayin
Registered User
Posts: 712
Joined: Mon Jun 16, 2003 12:01 am
Location: Middletown, America
Contact:

Post by zayin »

When does that happen? That was what it did to me before I enabled the clipboard stuff, but it only did that when I was trying to copy or paste.
"You can only find the truth with logic if you have already found the truth without it."
Custom Profiles MOD: add and manage profile fields
User avatar
opac
Registered User
Posts: 50
Joined: Tue Nov 25, 2003 1:44 am
Location: Canada
Contact:

Post by opac »

is it possible to make it so that when "Switch to normal Text Area Editor" is clicked, the user keeps it on normal text area editor unless he/she clicks another link to it goes back to the rich text editor until the user decides to switch...
do u understand what im trying to say?
Post Reply

Return to “[2.0.x] MODs in Development”