Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Pasting text changes format

Aloittaja thunderchld, maaliskuu 30, 2017, 08:43:57 IP

« edellinen - seuraava »

thunderchld

Hello!

We've been having an issue where, if text is pasted into our forum (2.0.13), the format changes and is wrapped with:
[font=verdana][size=2px][/size][/font]

I've searched our code (theme BlackOps) and I cannot tell where it is coming from.



That would still leave you the option in this instance earn a possible additional +15XP.
[font=verdana][size=2px]
   - Back-pay and donate for September                 [/size][/font][font=verdana][size=2px]   - Back pay and donate for January[/size][/font][font=verdana][size=2px]   - Back donate for February                                         

But, since this has been a mess, I'm going to keep the pop date at 07/02/17 unless you have to miss an event going forward.

Does that make sense?[/size][/font]

landyvlad

I presume that should have been surrounded by quote tags and not code tags.

It's pretty hard for anyone to diagnose it without the relevant code...

No doubt someone who knows what they are doing will be along to suggest what files might need to be examined.

Have a quick read here : http://www.simplemachines.org/community/index.php?topic=228939.0  as a guide to what info can be helpful to people in assisting you with this type of query.  Cheers.
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Arantor

Not really. It's being copied from a web page and pasted into the WYSIWYG editor which tries to match the original format.

Suggest posting it into Notepad first, or right click and use the browser option to paste as plain text (if your browser has it)
Holder of controversial views, all of which my own.


landyvlad

Simple as that? I've never experienced that before so assumed it was more complex... :)
"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

Arantor

There is a reason the WYSIWYG editor was completely replaced in 2.1, namely because half of the team at one point started referring to 2.0's editor as WYSIWTF.
Holder of controversial views, all of which my own.


landyvlad

"Put as much effort into your question as you'd expect someone to give in an answer"

Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

Be the person your dog thinks you are.

GL700Wing

I remember when the term WYSIWYG first started being used about 30 years ago and even back then we referred to it as SWYSIWYG (sometimes what you see it what you get) ...
Life doesn't have to be perfect to be wonderful ...

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

thunderchld

Lainaus käyttäjältä: landyvlad - maaliskuu 30, 2017, 09:08:29 IP
I presume that should have been surrounded by quote tags and not code tags.

It's pretty hard for anyone to diagnose it without the relevant code...

I put it in code as each time I put it in quotes it would take the relevant code and translate it as it is BBC code.


Lainaus käyttäjältä: Arantor - maaliskuu 31, 2017, 02:19:55 AP
Not really. It's being copied from a web page and pasted into the WYSIWYG editor which tries to match the original format.

Suggest posting it into Notepad first, or right click and use the browser option to paste as plain text (if your browser has it)

Thanks - that was my first thought and suggestion as well. However, I have been able to replicate it when pasting it from Notepad++, textpad, and notepad as well.  While I do agree it is a WISWYG issue - it is ALWAYS the same formatting of "[ font=verdana ][ size=2px ]". 


Some things I've done:
1. Copied from Word, pasted into Notepad++, paste into forum.   Everything looks a-ok until I hit delete or backspace and the font changes.  Only - it looks normal to me until I hit post.
2. typed ONLY in Notepad++, paste into forum. Again, everything looks normal to me until I hit post.
3. Type in forum only....no problems.


Illori

disable the WYSIWYG editor and the issue will go away.

thunderchld

I did that this morning.  It is a stop gap, but will work until I can find the reason why.

Illori

the reason is because that editor does NOT work.

Corrine

After a member complained about this issue and it couldn't be verified by others using the same browser, it was discovered that WYSIWYG was checked in "Look and Layout' in their forum profile.  After unchecking that, the issue was solved.

Antechinus

 Administration Center >> Posts and Topics >> Post Settings >> Disable WYSIWYG editor

Problem solved. For everyone. ;)

Advertisement: