Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Send full html document model instead of text #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

achempion
Copy link

closes #50

This PR allows to get full quill's document model instead of just stripped text.

Before changes

%{
  "data" => %{
    "quill" => %{
      "content" => "hello world",
      "type" => "Text"
    }
  }
}

After changes

%{
  "data" => %{
    "quill" => %{
      "content" => [
        %{"insert" => "hello "},
        %{
          "attributes" => %{
            "background" => "#f8f8f8",
            "bold" => true,
            "color" => "#434343"
          },
          "insert" => "world"
        },
      ],
      "type" => "Text"
    }
  }
}

@achempion
Copy link
Author

Probably we can add this into the current version by having it with a new key instead of Text, like quill or something.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Callback_object['Text'] should return quill delta
1 participant