Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.9k views
in Plugins by
it doesn't keep the format

you can write correctly, it looks correct, but the posted message is a plan text without almost any format

(no font size, no allignement, no colors)

how can I found what it's wrong?

 

 

I have found this old question, but without a final reply

http://www.question2answer.org/qa/5902/wysiwyg-editor-is-not-working
Q2A version: 1.5.4
by
Reply may be obtained if detailed information is attached?
1. Server spec (Host's kind / PHP version etc)
2. Client spec (OS / Browser Type / Browser version etc)
3. Detailed phenomenon (Operating procedure / Contents of display etc )
It is required for the question of fault.
by
thank you:
1)
Hosting Linux
PHP Version 5.2.17
mysql server: 5.0.92-enterprise-gpl-log
2)
at least firefox 19/20 on windows, iexplorer 8 on windows and the new safari on mac
but I think with all the browsers
3)
you type correctly in wysiwyg
you can see all the formats
but after they disappears
a simple example
if I write a message shorter then the minimun lenght, three letters
(an "a" on the left, "b" on the right, "c" in the middle of the screen)
when I send it, after the error the editor shows me the three letter on the left (he has lost the data of the position)
the same appen to a normal message with colors/fonts
they appear while you are writing the message in the editor, but they disappear when the message is sent

thank you!

1 Answer

0 votes
by
edited by

Such phenomenon? (Full size image)

[My test environment]
Server OS: Windows(Local server)
PHP: 5.2.10
MySQL: 5.1.35
Client OS: Windows XP(SP3)
Browser: Firefox V20 / Chrome V26
Q2A Version: 1.5.4
Q2A Theme: Snow
Q2A Site Language: English(UK)

 

"Error message" of you say "the error the editor shows" ?

by
YES!
exactly like this one
by
Error message from editor ?
by
Nothing on the screen. simply appen.
there are some logs to activate/read?
by
edited by
It is regrettable that there is no error message. I begin and look at this phenomenon...

[Try 1]
If it is in the state after installation, how about uploading again all files to under folders to your server by FTP?
 qa-include/*.*
 qa-lang/*.*
 qa-plugin/*.*
 qa-theme/*.*

[Try 2]
  Admin -> Event Logger -> Check "Log events to qa_eventlog database table" -> Save Changes -> Initialize Database -> Go to admin center
  You perform the operation in question.
  Check qa_eventlog table by phpMyadmin.
  Check content field of qa_posts table by phpMyadmin.

[Try 3]
  Q2A root/qa-config.php -> QA_DEBUG_PERFORMANCE -> true
  Check run history of program and SQL query.

[Try 4]
  Check error of Javascript by using debugger(Firebug) of browser(Firefox).
  https://addons.mozilla.org/firefox/addon/firebug
by
thank you very much for your support.
I'll try tonight (for me in 9 hours) and I'll reply you.
tnk
by
I'm doing some debugging, but, first:
- sorry, I've the 1.5.3, not the 1.5.4
- Try1, I'm using Q2A from a while with the basic editor. I have already a lot of questions/answer and will be my last option
by
Either of editors, string which include HTML tag is saved at DB without being changed. When "format" field of qa_posts table is "html", Q2A display as it is, but when "format" field is empty (""), Q2A display it  by replacing HTML tag to special string. (Example: "<"-> &lt;)

Check "format" and "content" fields of qa_posts table by phpMyadmin. And, check HTML code of displayed question page.
by
I'm going out to work, but, quickly:
something similar to your example, but with shorter text, produce, in the 'content' field

<p>
    <span>a<span>

    <span>b<span>

    <span>c<span>

     </span></span></span></span></span></span></p>


'format' is html

tonite I'll test it better
(thanks again)
by
Sorry
I've not found the solution.
so, I have installed in another directory the new version and slowly I have migrated on the new one.
for curiosity:
now I can write and edit regularly on the new installation. If I show one of these questions on the old directory it's without html.
In any way: problem solved. thank you for your advices.
by
It was good to solve.
...