jd0991 / wordpress-job-manager

Automatically exported from code.google.com/p/wordpress-job-manager
0 stars 0 forks source link

WYSIWYG #358

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. If you add new job and 
2. type the description on the editor
3. type the text then enter then text again then enter.
4. When you save it and edit it back, all the new line you place are gone. In 
the end all of the text in three paragraphs end up in one paragraph.
5. Tried TinyMCE but same thing....

What is the expected output? What do you see instead?
New line should be save as what you entered on the editor.
Not removing all newlines once you saved the job you added.

What version of Job Manager are you using?
latest plugin and latest wp dated today.

What version of WordPress are you using?
Latest 3.2.1

Please provide any additional information below.

Original issue reported on code.google.com by dalefox...@gmail.com on 3 Oct 2011 at 8:39

GoogleCodeExporter commented 8 years ago
Forgot to mention....  I noticed it creates new line on the front end display.
But on the backend when you edit the job it removes all the new lines and 
making it all in 1 paragraphs

Original comment by dalefox...@gmail.com on 3 Oct 2011 at 9:12

GoogleCodeExporter commented 8 years ago
Hi there --

Seeing the same problem -- admin display doesn't seem to pickup WYSIWIG 
elements from the database.  To add a bit, if I enter line breaks or other 
whitespace tags in the HTML view and save the WYSIWIG editor will remove them 
and they're gone in HTML view also ...

Thanks!

Original comment by matt.le...@gmail.com on 3 Nov 2011 at 9:21

GoogleCodeExporter commented 8 years ago
Looks like a problem with the editor.js in the core wordpress files.

* HACK ALERT *

I was able to fix this by adding "|p|br|" to the blocklist variable on line 139 
of editor.dev.js and for good measure commented out the <p> and <br /> removal 
lines 48-51 to prevent the same error from occuring when switching viewers.  
Don't forget to save editor.dev.js as editor.js!

-Matt

Original comment by matt.le...@gmail.com on 3 Nov 2011 at 10:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Same problem here, the "hack" is removing the problem, however i don't think 
it's good permanent solution... 

Original comment by josef.je...@gmail.com on 14 Nov 2011 at 9:24