philtre v0.10.2
  • Pages
  • Modules

    View Source Philtre.Editor (philtre v0.10.2)

    Shared component used for both creation and editing of an article.

    Link to this section Summary

    Types

    t()

    Functions

    html(editor)

    See Philtre.Editor.Serializer.html/1.

    new()
    normalize(editor)

    See Philtre.Editor.Serializer.normalize/1.

    replace_block(editor, block, new_blocks)
    serialize(editor)

    See Philtre.Editor.Serializer.serialize/1.

    text(editor)

    See Philtre.Editor.Serializer.text/1.

    Link to this section Types

    Link to this type

    t()

    View Source
    @type t() :: %Philtre.Editor{
      blocks: term(),
      clipboard: term(),
      id: term(),
      selected_blocks: term(),
      selection: term()
    }

    Link to this section Functions

    Link to this function

    html(editor)

    View Source

    See Philtre.Editor.Serializer.html/1.

    Link to this function

    new()

    View Source
    Link to this function

    normalize(editor)

    View Source

    See Philtre.Editor.Serializer.normalize/1.

    Link to this function

    replace_block(editor, block, new_blocks)

    View Source
    @spec replace_block(
      t(),
      struct(),
      [struct()]
    ) :: t()
    Link to this function

    serialize(editor)

    View Source

    See Philtre.Editor.Serializer.serialize/1.

    Link to this function

    text(editor)

    View Source

    See Philtre.Editor.Serializer.text/1.

    On Hex.pm: Package Preview (current file)

    Built using ExDoc (v0.28.4) for the Elixir programming language