如何在tinymce 4.2编辑器中添加字体大小和字体系列?

时间:2017-05-25 09:24:56

标签: php jquery

transform:rotate(45deg) translate(-50%, 0);

3 个答案:

答案 0 :(得分:2)

this documentation不适合你吗?

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  toolbar: 'fontselect',
  font_formats: 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n',
  fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt'
});

答案 1 :(得分:0)

tinymce.init({
  selector: 'textarea',
  height: 500,
  plugins: 'code',
  toolbar: 'undo redo | fontsizeselect fontselect',
  content_css: ['//fonts.googleapis.com/css?family=Indie+Flower'],
  font_formats: 'Arial Black=arial black,avant garde;Indie Flower=indie flower, cursive;Times New Roman=times new roman,times;'
});

链接 https://codepen.io/anon/pen/przvoq

答案 2 :(得分:0)

您可以将其用于fontsize_formats

tinymce.init({
    selector: 'textarea',
    toolbar: 'fontsizeselect',
    fontsize_formats: "8px 10px 12px 14px 18px 24px 36px"
});