ISSUE SUMMARY:
Our users are pasting text from other sources and pasting into into the group discussion form. When it is emailed out the text is corrupted and is outside the jomsocial template, the link to reply is corrupted. It is like the html file is not adapting for new text from an outside source. Is there a way of using jce editor instead of the jomsocial editor which doesn't cope with text from another source?
STEPS TO REPLICATE:
1 Paste text into new group discussion from a word document or elsewhere.
2
3
4
5
RESULT: Text falls outside the jomsocial notification template and link is corrupted.
EXPECTED RESULT: Text remains inside the notification template and link is clear for user to reply
BROWSER: Chrome, Safari
Hi, Susan.
The problem lies NOT in our editor (JCE will work the same way) but source text. I presume it's copied from MS Word or from website? Then it's copied with HTML code.
Text should be copied from source to simple text editor like Notebook or BlueFish or any other that removes code from source text.
This issue (well, it's not an real issue IMHO) apply to ALL WYSIWYG editors. May I see where issue occurs?
Hi, Susan.
I'm sorry but no attachment was provided....
Hi, Susan.
Ok, could you forward me that email at michael [at] ijoomla.com?
Hi, Susan.
I confirm. Email is corrupted because HTML code pasted inside. Code was copied along with text from external source. Then email processor loads text+code into email... and code damages email template.
So there are three options:
- copied text should be cleared from html tags by pasting into Notebook
- copied text should have correct HTML code (the one who copies it should review if code is completed or contains invalid tags)
- you use text email instead of HTML
Like many community users, they are not going to know a thing about html, so jomsocial needs to adapt to text being pasted in. I understand that JCE editor can cope with this generally?
Hi, Susan.
No, the same result will be using JCE. This is very common issue - users are not aware that copying text from MS Word or web sites will also copy code. Please, do a simple test: open Word document with some text. Then copy it directly to JCE. Next click [Toggle editor] button that is right above upper right corner of toolbar. It will switch to HTML - you'll see how many trash code is copied along text.
Result should be similar:
i.imgur.com/pyhxcDH.png
The same text with pasted in Notebook first and then to editor:
i.imgur.com/xWzmI5y.png
There are only <p> (paragraphs) and <br /> (break lines).
I think we can't enable auto clean up as this will also clean code create by user in text field.... and so many users request to have HTML markup.This issue doesn't apply to JS version that doesn't have WYSIWYG editor for some fields (I recall that some versions ago there wasn't WYSIWYG editor for events description field....).
I don't agree. This was not a problem before in Jomsocial and it is now. JCE is able to cope better with text pasted in. We have had a lot of users creating these corrupted emails in the past few weeks and this was not the case previously.
Hi, Susan.
Did you tested copying text from e.g Word to JCE like I suggested?
What version do you mean then?This was not a problem before in Jomsocial
It doesn't necessarily means there was no "problem" in JomSocial 4.0.8 to say it with your words.
Try to paste same bulk of code that breaks in 4.1 and it will most likely break in 4.0
Let me just make one thing clear. If we strip down HTML after submit then we are making another problem