Issue #388Opened October 6, 2017by ajaysofto0 reactions

No CSS ::before & ::after Selectors

Question

how can we add before and after selector for any classes

Answers (1)

artfOctober 6, 20170 reactions

You have to change selector states

grapesjs.init({
     ...
    selectorManager: {
        states: [
              { name: 'hover', label: 'Hover' },
              { name: 'nth-of-type(2n)', label: 'Even/Odd' },
              { name: ':before', label: 'Before' }, 
              { name: ':after', label: 'After' }, 
          ],    
    }
})

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.