omar wrote:
Frans... its been annoying me for some time. I remeber when I first started posting on this Forum that I could highlight my text and then click on Bold or Underline and my highlighted text would be surrounded with the necessery tags.
Now, if I do the same, the tags get written at the end of my text and I have to do the rest manually...
I use firefox for a long time (since 0.6 or so), and I know what you mean. When I wrote tinyforum, I couldn't find a way to position the cursor at a given spot and insert the tags. The code I use now is only working in IE, not in Firefox.
The editor is now a textbox. It can be solved by using an iframe, like the wysiwyg editors use. It's a little tough to program though, as it is javascript and not my field, but I'll give it a try.
another issue, when posting code. Usually the code has tabs and spaces that make readable but surronding it with the code tag does nothing more than put it in a box and the code looses all indentation spacing that it becomes difficult to read and follow specially if it was a lengthy listing of code.
The parser converts tabs to 4 characters now, though it doesn't do anything with spaces. On a dutch forum I visit regularly, they now use divs with <pre></pre>, which is better. I could convert code blocks to pre blocks and use a proportional font, which would solve it. I'll look into that too (coming weekend).
I'll then also try to fix an issue with the UBB parser, where if it finds an error it doesn't re-tokenize the input. (like a string without a closing double quote)