Author |
Topic |
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 12:21:22
|
OWM,
Not in "edit Topic" or "edit reply" yet. I'm trying to figure out how to have it optional to use the RTE, or the plain text editor I guess I'll have an option in the users profile, and if the browser is < IE5.5 or <Moz1.4 It defaults to the plain text editor. If it's RTE mode it just has "&editmode=rte" in the querystring. |
|
|
homeacademy
Junior Member
USA
163 Posts |
Posted - 27 June 2003 : 19:04:07
|
Looks cool! Some HTML code created by the editor is coming through, ie
<p align="center" /><p align="center" />
<p align="center" /> but otherwise functions great. It doesn't work on my Netscape 7.01. Says my 'Gecko' isn't supported. Netscape is based on Mozilla, right? What version? I'm assuming NS 7.01 uses pre-1.4 Mozilla codebase. Or will NS never be supported? TIA, and SO MANY thanks for this mod. Will implement even if it doesn't support my main browser BTW, what RTE is this based on? Thanks! |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 19:19:59
|
Ahh, "<p align="center" />" comes through because it wasn't closed, and it's XHTML compliant. If I just change that to "<br />" it should accomplish the same thing. I'll do it later
NS is based on Mozilla, but pre v1.3 (oops typo above, 1.3 not 1.4) In the next version of Netscape, If they go with the Mozilla technology (Content.EditableHTML or something) it will be supported. Otherwise, no.
I based this editor on HTMLArea3.0 though it would work with v2.03, I used 3.0Alpha because it supports Moz1.3+. |
|
|
homeacademy
Junior Member
USA
163 Posts |
Posted - 27 June 2003 : 19:31:58
|
Excellent! I'll wait for a new version of NS, and look forward to this MOD! HTMLArea is a great choice; I've used it for other non-snitz apps and liked it. Will check out 3.0Alpha, didn't know it was out.
I noticed, there is a button on the editor to view HTML source. Is there a reason for that, since everything is converted to forum code and remaining HTML filtered out? Thanx again! |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 21:11:43
|
Oh, yeah the '<>' button is there for me, it just makes it easier for debugging. It will be removed when I release it.
I'm looking at the Table feature in HTMLArea, and I might include the [table][tr] etc. tags, they look good in the RTE... |
|
|
homeacademy
Junior Member
USA
163 Posts |
Posted - 27 June 2003 : 21:24:37
|
That'd be great! Maybe even add the [table][tr] etc to the basic forum code, so even if you're not in RTE mode you can still use tables... |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 21:37:16
|
Well, the problem with that is that If I add this to my post:
[td][/td]
It would screw up your tables.... I'm not sure if I can stop that... |
|
|
homeacademy
Junior Member
USA
163 Posts |
Posted - 28 June 2003 : 07:12:57
|
Like the tables for the main forum, right. Hadn't thought of that. Could make things look really weird/unreadable. Maybe insert a [table] at the top of the post and [/table] at the bottom, so anything they do would only be to their "own" nested table, and wouldn't mess up the layout? |
|
|
homeacademy
Junior Member
USA
163 Posts |
Posted - 28 June 2003 : 07:19:45
|
And, you'd have to somehow check that every [table]/[td]/[tr] tag has a matching closing tag. If not you could just add extra [/table] tags and still mess things up. |
|
|
The Impact
Junior Member
Australia
398 Posts |
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 28 June 2003 : 16:57:03
|
Well, adding <table border="0"> and </table> to every post would work... I don't know how browser compatible that would be though.
quote: And, you'd have to somehow check that every [table]/[td]/[tr] tag has a matching closing tag. If not you could just add extra [/table] tags and still mess things up.
No, the DoCode function does that. eg:
fString = doCode(fString,"[tr]","[/tr]","<tr>","</tr>") so If I only post:
[table][tr][td]test...[/td][/table] It won't work.
Maybe I'll do two sets of tags for users... Normal ones as above, and basic ones as well. [table][row][col][/col][/row][/table]
Then I'll have to get into colspan and all the other table stuff... uhh, will be tougher than I thought. |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 28 June 2003 : 16:58:46
|
Impact...
Well, IMO that is more likely to screw most people up because it ends the tags at the end of the post, not where it SHOULD end them.
Although, If I used that onsubmit() I think it could fix the layout problems, only screw up the post a little. |
|
|
homeacademy
Junior Member
USA
163 Posts |
Posted - 28 June 2003 : 18:29:17
|
Okay... Why not just allow tables if the post is in RTE mode; the RTE editor will always make sure the proper tags are in place. And as you said, the DoCode function will keep things from messing up the forum's layout in case of any problem. |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 28 June 2003 : 19:20:56
|
Yep, If the other way is too complex I might just do that. |
|
|
The Impact
Junior Member
Australia
398 Posts |
Posted - 28 June 2003 : 23:55:14
|
Yup your right Dave.
BTW I have not been able to get it working on either Netscape or Mozilla yet. |
|
|
Topic |
|