SMF Development > Bug Reports
[SMF 2.0.2] WYSIWYG editor wrongly formates URL without the "http" prefix
Masterd:
--- Quote from: Arantor on June 27, 2012, 12:31:31 PM ---Why should it, when the browser won't anyway?
--- End quote ---
This is What You See I What You Get editor, right?
Arantor:
It doesn't really matter whether it is or not.
Add this to your template somewhere: <a href="mypage.html">my page</a> and where does the link take you? It certainly doesn't take you to http://mypage.html
Masterd:
--- Quote from: Arantor on June 27, 2012, 03:36:41 PM ---It doesn't really matter whether it is or not.
Add this to your template somewhere: <a href="mypage.html">my page</a> and where does the link take you? It certainly doesn't take you to http://mypage.html
--- End quote ---
Ofcourse not. It's just the way how HTML behaves. But here we are talking about "super advanced Web 2.0 editor". The main role of using WYSIWYG editor is to get what you see. And in this case it's simply not happening.
emanuele:
There is for sure an inconsistency.
If I simply write:
--- Code: ---www.something.com
--- End code ---
in the normal editor what I get is a link to:
--- Code: ---http://www.something.com
--- End code ---
while using the WYSIWYG what I obtain is a link to:
--- Code: ---http://www.simplemachines.org/community/www.something.com
--- End code ---
so I feel one of the two is wrong.
BTW in 2.1 there is a similar situation, but less evident since the http://www.simplemachines.org/community/www.something.com will appear only as title of the link in the WYSIWYG editor but will not be converted by the editor itself.
FrizzleFried:
I'd like to put forward that if a user types
--- Code: ---www.anything.com
--- End code ---
... if they get something OTHER than
--- Code: ---http//www.anything.com
--- End code ---
as the end result... that would be the wrong way of doing things. I don't "care" how HTML works... the bottom line is that it is illogical to expect anything other than the same URL you type in but PERHAPS with the http:// added... to be a true WYSIWYG... no?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version