Skip to content

Heading is not properly reloaded #23

@QLevaslot

Description

@QLevaslot

I am saving some content with headings, with such a config:

module.exports = {
  heading: {
    options: [
      { model: "paragraph", title: "Paragraph", class: "ck-heading_paragraph" },
      {
        model: "heading1",
        view: {
          name: "p",
          classes: "title-1",
        },
        title: "Heading 1",
        class: "ck-heading_heading1",
      },
   ], ...
};

When I input content such as:

heading 1

paragraph

It gets saved properly, and when i try to retrieve the text, it shows the following:

<p class=\"title-1\">Header 1</p><p>&nbsp;</p><p>paragraph</p>

However, when i refresh the content page on strapi, the headings are gone from the editor, and I get asked to save the version without any defined heading.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions