Issue #388💬 AnsweredOpened October 6, 2017by ajaysofto0 reactions

No CSS ::before & ::after Selectors

快速解答by artf

You have to change selector states

Read full answer below ↓

Question

how can we add before and after selector for any classes

Answers (1)

artfOctober 6, 2017

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.