spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
813 stars 256 forks source link

Change font name in highlighted empty line #265

Open vhlaynez opened 4 years ago

vhlaynez commented 4 years ago

Hi, I'm not able to change the font name in the highlighted empty line. For example, if I have two lines like shown below:

Captura de Tela 2020-01-16 às 17 25 31

Highlight everything and change the font name:

Captura de Tela 2020-01-16 às 17 24 03

The empty line still in Arial 11 (default font and size):

Captura de Tela 2020-01-16 às 17 30 43

Here is my tinymce configuration:

  selector: "textarea.tinymce",
  fontsize_formats: "8pt 9pt 10pt 11pt 12pt 13pt 14pt 18pt 24pt 36pt",
  language: "pt_BR",
  toolbar: ["undo redo | fontselect fontsizeselect | bold italic underline subscript superscript",
    "backcolor forecolor removeformat | editimage imageoptions | bullist numlist table |  alignleft alignjustify aligncenter alignright | searchreplace | save "],
  menubar: false,
  plugins: "table, image, imagetools, searchreplace, lists, media, textcolor, autosave, save, paste",
  content_css: ["<%= asset_url 'tinymce-content.css' %>"],
  media_live_embeds: true,
  branding: false,
  width: "767",
  resize: false,
  media_filter_html: false,
  media_live_embeds: true,
  save_enablewhendirty: true,
  paste_retain_style_properties: "font-size,color,font-family",
  paste_webkit_styles: "font-size,color,font-family",
  save_onsavecallback: showPageCount,
  paste_word_valid_elements:"span,p,b,strong,i,em,h1,h2,h3,h4,h5,h6",  
  extended_valid_elements : "video[controlslist|draggable|controls|id|src|dataid|preload|width|height|data-setup],source[src|type]"