⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

problem applying styles to text



Dexta Dex
  • profile picture
  • Member

Posted 23 November 2013 - 14:28 PM

Hi,

 

Have been using grocerycrud for a while now without issue until i tried to apply styles and colour to different text, it's not applying the colour but it is adding the span elements, what could be wrong?

 

Thank you in advance


Amit Shah
  • profile picture
  • Member

Posted 24 November 2013 - 05:15 AM

Hi Dexta Dex

 

check in the firebug ... whether the style defined by you is being over ridden by another css from the theme or not. If so .. and you still plan to add your style - i will recommend you add it dynamically using javascript (window.onload)

 

That should solve your problem

 

Happy GCing)


Dexta Dex
  • profile picture
  • Member

Posted 25 November 2013 - 11:14 AM

Thanks Amit,

 

Problem is after applying the styles on the texteditor and saving, on viewing the same entry, the styling is removed but the span elements used are still there. This means that there's a filter removing the styling before it gets to database


Dexta Dex
  • profile picture
  • Member

Posted 25 November 2013 - 16:01 PM

Well after doing plenty of code "play-time" :angry:  it finally ends by disabling global_xxs_filtering......


Amit Shah
  • profile picture
  • Member

Posted 28 November 2013 - 09:12 AM

Well.. happy to see you finally got the solution :)