|
8 | 8 | <meta charset="utf-8"> |
9 | 9 | <title>Rich text webmail editor demo</title> |
10 | 10 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
11 | | - <script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/5-dev/tinymce.min.js" referrerpolicy="origin"></script> |
| 11 | + <script src="https://cdn.tiny.cloud/1/qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc/tinymce/8/tinymce.min.js" referrerpolicy="origin"></script> |
12 | 12 | <script> |
13 | 13 | tinymce.init({ |
14 | 14 | selector:'#editor', |
|
47 | 47 | formatgroup: { |
48 | 48 | icon: 'format', |
49 | 49 | tooltip: 'Formatting', |
50 | | - items: 'fontselect | formatselect | bold italic underline strikethrough forecolor | align bullist numlist outdent indent blockquote' |
| 50 | + items: 'fontselect | styles | bold italic underline strikethrough forecolor | align bullist numlist outdent indent blockquote' |
51 | 51 | } |
52 | 52 | }, |
53 | 53 |
|
|
58 | 58 | // The formats option is where custom formatting options are defined. |
59 | 59 | // In this case we define a couple of headings and text formats. |
60 | 60 | // The p is configured to match against multiple formats to make sure |
61 | | - // the styleselect toolbar menu button shows paragraphs as enabled on |
| 61 | + // the styles toolbar menu button shows paragraphs as enabled on |
62 | 62 | // p tags that lacks style attribute. The first item in the array will |
63 | | - // be the one applied when choosing the format via the styleselect |
| 63 | + // be the one applied when choosing the format via the styles |
64 | 64 | // toolbar button. |
65 | 65 | // https://www.tiny.cloud/docs/configure/content-formatting/#formats |
66 | 66 | formats: { |
|
73 | 73 | small: { block: 'small', styles: { fontSize: '12px', color: '#aaaaaa' } } |
74 | 74 | }, |
75 | 75 |
|
76 | | - // An alternative to the styleselect toolbar button is the formatselect button |
77 | | - // which is a simpler version of the styleselect button. It is configured |
| 76 | + // An alternative to the styles toolbar button is the styles button |
| 77 | + // which is a simpler version of the styles button. It is configured |
78 | 78 | // using the block_formats option. |
79 | 79 | // https://www.tiny.cloud/docs/configure/editor-appearance/#block_formats |
80 | 80 | block_formats: 'Normal=p; Heading=h1; Sub heading=h2; Small=small', |
|
0 commit comments