x
You must log in to view that page.
Help get this topic noticed by sharing it on Twitter Twitter, Facebook Facebook, or email.
info

Wygwam inline stylsheet overide each other

I have a channel entry that contains a matrix field that has one image and a wygwam field per row. For this entry I have 5 rows, and thus 5 wygwam fields.

I'm using different inline stylesheets for every row's wygwam using the source button and the problem is that the "lowest" wygwam's stylesheet is overriding the others e.g. for the 5 rows, the inline stylesheet of wygwam 2, is overriding wywam 1's stysheet and 3, overrides both 1 and 2, and 4 is overriding both 1,2 and 3.
1 person has
this problem
+1
Reply

  • Hmm, sounds like a weird CKEditor bug. I'm pretty sure they don't intend for you to add your own inline stylesheets though...

    Maybe it would be better if you used one single stylesheet for all of the rows (and define it in Modules > Wygwam > Editor Configurations > [your config name] > CSS File), and then for each row, wrap the Wygwam field with a <div id="unique_row_name">, and use those divs to group the styles in the CSS file.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly sad, anxious, confused, frustrated indifferent, undecided, unconcerned happy, confident, thankful, excited