tinymce adding p tags automatically?

tinymce

Solution

TinyMce automatically add "`<p>`" in new lines. You can set this option in tinyMce initialization like this:

  tinyMCE.init({
      mode : "textareas",
      theme : "advanced",
      force_br_newlines : false,
      force_p_newlines : false,
      forced_root_block : '',
  });

Hope it will help

Fonski

Problem

Im using tinymce and saving it to a database. When I edit the saved content using tinymce and save again, it inserts a p tag at the beginning. Editing the content over and over again leaves a large gap at the beginning of the content. DOes anyone know a fix?

Original source