Author |
Topic  |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 22 June 2001 : 04:22:52
|
I have an idea that I think would make a really nice mod. You can see the general idea at http://www.getitcrunk.com/wysiwyg/snitzwysiwyg.htm
If you get to the page, and don't know what it's supposed to show....just start typing and I'm sure you'll quickly figure out why I'm so excited. Yes, it's very rudimentary. The interface WILL be greatly improved before I release it, I promise. Smilies, links, and all that good stuff will most likely be in there. And the table won't do a goofy resize. 
Here's the real problem: To output true wysiwyg, I have to replace spaces with . If I don't, the WYSIWYG just isn't very WYSIWYG. You hit space more than once, and your cursor just sits there.
Why is this a problem? Well, I hope to implement this as a "Mode". When people edit posts (or reply with quote) created in this WYSIWYG mode with other modes they will be looking at some ugly data. Data never meant for human eyes in raw form, that's for sure. If you try the example above, hit the "Get Message Output" button, and you'll see what I mean.
Any ideas to get around that issue? -Dan
Edited by - Dan Martin on 22 June 2001 04:24:17 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 22 June 2001 : 09:18:37
|
First of all, VERY NICE!!!
quote:
Here's the real problem: To output true wysiwyg, I have to replace spaces with . If I don't, the WYSIWYG just isn't very WYSIWYG. You hit space more than once, and your cursor just sits there.
I am not having that problem with IE 5.5
Question: When I click view message it shows the raw html, is this what is going to be passed to the database directly? or are we going to use inc_functions to convert to Forum Coding??
Dayve |
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 22 June 2001 : 13:07:51
|
quote:
I am not having that problem with IE 5.5
You shouldn't have a problem, I'm outputting right now. But it's also in the output that would end up in the database, and viewed when edited in another mode, or "reply with quote" in another mode.
quote:
Question: When I click view message it shows the raw html, is this what is going to be passed to the database directly? or are we going to use inc_functions to convert to Forum Coding??
Well, I'm still contemplating this. One good thing about this mod, is the need for Forum Code goes away. As long as the software I'm writing always outputs "safe" HTML, the need for Forum Code isn't there.
If it just had to output forum code, it's possible I could write something in Javascript that would convert from forum code to HTML. However, A. That seems a little backwards, since this mod, in a sense, eleviates the need for forum code. B. It still doesn't solve the issue of in place of every space. Maybe a [space] forum code.....but that would be just as ugly to look at.
Edited by - Dan Martin on 22 June 2001 13:08:36 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 22 June 2001 : 13:28:36
|
could you add a replace function in inc_functions for to equal " " ? something like:
fString = replace(fString, "& n b s p;"," ", 1, -1, 1)
or something similar? also, I am familiar with DHTML and the use of innerHTML/innerTEXT, I was wondering if.... let me go look at your source again...
Dayve
I had to space out the & n b s p tag because this forum interpreted it as a space already... how come your above post did not do that??
Edited by - dayve on 22 June 2001 13:31:27
Edited by - dayve on 22 June 2001 13:32:30
Edited by - dayve on 22 June 2001 13:33:51 |
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 22 June 2001 : 13:45:38
|
quote:
also, I am familiar with DHTML and the use of innerHTML/innerTEXT, I was wondering if.... let me go look at your source again...
It's all there. No code is hiding on the above example. In fact, notice that page isn't ASP (its just a proof of concept right now).
quote: I had to space out the & n b s p tag because this forum interpreted it as a space already
A little trick I learned from one of the Snitz authors (I forget which). Here's what I wrote with some spaces so you can see: [ b]&[ /b][ b]nbsp;[ /b]
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 22 June 2001 : 14:27:37
|
thanks for the tip... doh, I should have known that. as for your source, I know it is purely html, that's why I said I was going to go look at the source 
  
so that would work with this too:
[img] I think...
Dayve |
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 25 June 2001 : 20:47:40
|
Hmm, woulda thought you Snitz guru's would be interested in helping me complete this. (subtle thread bumping)
quote:
Here's the real problem: To output true wysiwyg, I have to replace spaces with . If I don't, the WYSIWYG just isn't very WYSIWYG. You hit space more than once, and your cursor just sits there.
|
 |
|
|
Topic  |
|
|
|