Не нравятся результаты поиска? Попробуйте другой поиск!
DLE FAQ » Все вопросы » Общие вопросы по вёрстке » Добавить шрифт в редактор tinymce (DLE11.1)?

Добавить шрифт в редактор tinymce (DLE11.1)?


     31.10.2016    Все вопросы » Общие вопросы по вёрстке    2105

вопрос
Мне нужно подключить шрифт к редактору tinymce?
DLE11.1

Ответа пока нет


2 комментария

Ойбек
Юзер

Ойбек - 31 октября 2016 18:10 -

А нельзя ли испоьзовать такой тег в fullstory.tpl
<font style="стиль">{fullstory}</font>

Тогда будет удобно)

irrwisch
Юзер

irrwisch - 1 ноября 2016 10:40 -

а почитать документацию совсем никак?

font_formats

This option lets you control the font families presented to the user in the fronts drop down list.

This option should contain a semicolon separated list of font titles and font families separated by =. The titles are the ones that get presented to the user in the fonts drop down list and the font family name is the string that gets inserted into the font face or font-family CSS style.

Type: String

Default Value: 'Andale Mono=andale mono,times;'+ 'Arial=arial,helvetica,sans-serif;'+ 'Arial Black=arial black,avant garde;'+ 'Book Antiqua=book antiqua,palatino;'+ 'Comic Sans MS=comic sans ms,sans-serif;'+ 'Courier New=courier new,courier;'+ 'Georgia=georgia,palatino;'+ 'Helvetica=helvetica;'+ 'Impact=impact,chicago;'+ 'Symbol=symbol;'+ 'Tahoma=tahoma,arial,helvetica,sans-serif;'+ 'Terminal=terminal,monaco;'+ 'Times New Roman=times new roman,times;'+ 'Trebuchet MS=trebuchet ms,geneva;'+ 'Verdana=verdana,geneva;'+ 'Webdings=webdings;'+ 'Wingdings=wingdings,zapf dingbats'

Пример

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'
});

Файл в DLE /engine/editor/jscripts/tiny_mce/tinymce.min.js

Чтобы комментировать - войдите или зарегистрируйтесь на сайте

Похожие вопросы

наверх