Link to home
Start Free TrialLog in
Avatar of Robert Saylor
Robert SaylorFlag for United States of America

asked on

tinyMCE

I am using version 4.7 and when I press enter in the HTML editor it adds an extra line break or is just bigger space. I use to be able to disable that in older versions. Not sure how to in 4.7

Here is my init:

<script>
tinymce.init({
  selector: 'textarea',
  height: 300,
  menubar: false,
  forced_root_blocks: false,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks code fullscreen',
    'insertdatetime media table contextmenu paste code'
  ],
  contextmenu: "paste copy link image inserttable | cell row column deletetable",
  toolbar: 'paste copy undo redo | bold italic fontselect fontsizeselect | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link unlink image hr | removeformat | forecolor ,backcolor ',
  content_css: [
    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
    '//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css',
    '//www.tinymce.com/css/codepen.min.css']
});
</script>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial