-1

Formatted text is stored in database properly with all tags and when I inspect element on my webpage for example it says <strong>something</strong> but it is not displayed as bold/strong.

In my head tag I have the source being called and tinyMCE initialized, like so :

<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
  tinymce.init({selector:'textarea'});
</script>

What could it be?

Seth
  • 10,198
  • 10
  • 45
  • 68
admir
  • 193
  • 16

1 Answers1

0

try adding this code:

tinyMCE.init({
    selector:'textarea',
    valid_elements : "a[href|target=_blank],strong/b,div[align],br"
});
Tom
  • 432
  • 2
  • 9
  • Try refreshing the page few times to make sure you are not loading cached version. – Tom Dec 04 '14 at 01:26
  • go to www.motel-bosna.tk and open "Cjenik" category in navigation.Inspect element on text and you will see some strong tags but it is not displayed.For exapmle
    Cjenik noćenja
    – admir Dec 04 '14 at 01:29
  • i refreshed few times and still nothing i even deleted everything and started to format text from beggining but again nothing – admir Dec 04 '14 at 01:38
  • remove: font: inherit;" from style.css on line 18 – Tom Dec 04 '14 at 01:41
  • you have a css reset that makes `strong` have font-weight normal. Simple to inspect in browser dev tools – charlietfl Dec 04 '14 at 01:41
  • just remove font: inherit; from style.css (line 18) – Tom Dec 04 '14 at 01:44
  • @Tom ok i removed font:inherit and now it works.Thak you guys – admir Dec 04 '14 at 01:49