content property

String content

Gets the current content of the editor.

If the editor only has one empty paragraph- it will return an empty string.

Implementation

String get content {
  // do not count the empty paragraph as a valuable content.
  // this is needed to properly evaluate the `contentIsEmpty` property
  if (processOutputHtml && textHasNoValue(_buffer)) {
    return '';
  }

  return _buffer;
}