質問

I've used TinyMCE in my projects. It works well when I run the web application locally. But when I put the files on the internet, text-color and font-size don't apply in the formatting.
What's the problem ?

役に立ちましたか?

解決 2

Finally I've found the problem when I saw the source of page.
This is what is stored in databae for one of that items:

<span style=\"font-size: 24pt; color: #ff0000;\">

When I removed \ from stored data, problem got solved. I'm using PDO to connect PHP with MySQL. So I think it is escaping double quotes.
So the solution is about preventing PDO to escape double quotes.

Thank you all to getting participate in this question.

他のヒント

I think you've got an another rule that overrides your font style.

The fact that the development and production version diverge is a little weird, have you try to clean your cache (CTRL + F5) ? Like @Aiden Ewen said, you should view the rule being applied to an element by inspect it using the developers tools, and easily target the file and line where is located this rule.

Inspector

Here you can see the color black is applied to #question-header a in the all.css file.

You can also try, if it is not already, to add the keyword important next to the CSS rules you want to apply at the TinyMCE.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top