Xwikicontent CSS for Edit and View consistency

Hello all,

I’ve successfully managed to use #xwikicontent h2 {...} to change CSS heading styles of content in view mode but I can’t seem to target headings displayed in the CKeditor.

What is the most robust way of changing text styles so that XWiki looks consistent between edit and view modes?

Thanks

The following should be pretty robust:

/* View mode */
#xwikicontent h2,
/* WYSIWYG edit mode */
#body[contenteditable] h2 {
  ...
}

Aha… perfect. Thanks Marius.