GrayMP

tinymce_pretty - no more font messup

Oct 24th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Html.TextAreaFor(x => x.Item.descriptionFull, new { @class = "form-control mceEditor", id = "product-desc-full", rows = 5 })
  2.  
  3. // no more font mess up
  4.  
  5.  tinyMCE.init({
  6.             mode: "specific_textareas",
  7.             width: '100%',
  8.             height: '300px',
  9.             editor_selector: "mceEditor",
  10.             theme: "advanced",
  11.             theme_advanced_toolbar_location: "top",
  12.             theme_advanced_buttons1: "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
  13.             theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,fullscreen",
  14.             force_br_newlines: false,
  15.             force_p_newlines: true,
  16.             forced_root_block: '',
  17.             removeformat: [
  18.                 { selector: 'span', attributes: ['style', 'class'], remove: 'empty', split: true, expand: false, deep: true },
  19.             ]
  20.  
  21.         });
Advertisement
Add Comment
Please, Sign In to add comment