Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.51 KB

File metadata and controls

41 lines (26 loc) · 1.51 KB

Import CSS plugin

The importcss plugin adds the ability to automatically import CSS classes from the CSS file specified in the content_css configuration setting.

By default selectors like ".my-class", ".my-class1.my-class2" and "p.my-class" get imported as format rules.

Basic setup

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'importcss',
  content_css: '/my-styles.css'
});