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

LVL 7
Robert SaylorSenior DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
From a similar question here :
You need to press SHIFT + ENTER or use CSS to customize <p>aragraphe

.mce-content-body p {
      margin: 10px 0px; // original value is 25px instead 10px
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.