Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Recursive tool support? #57

Open
nickolasjadams opened this issue Apr 20, 2022 · 2 comments
Open

Recursive tool support? #57

nickolasjadams opened this issue Apr 20, 2022 · 2 comments

Comments

@nickolasjadams
Copy link

I've been struggling to write a configuration for the nestedList tool plugin.

At first I thought the documentation said this was possible with "data" and "-".

But after looking at the example and struggling, I'm wondering if I misinterpreted the docs.

Has anybody successfully written a configuration for something like this

  • content1
  • content1.1
    • content2
"type": "nestedList", 
"data": {
    "style": "unordered",
    "items": [
            {
                "content": "content1",
                "items": []
            }, 
            {
                "content": "content1.1",
                "items": [
                    {
                        "content": "content2",
                        "items": []
                    }
                ]
        }
    ]
}
@n0str
Copy link
Contributor

n0str commented Apr 20, 2022

Hi! There is an example in Docs for the nested tool.
Currently there is no support of recursive syntax.

"table": {
  "content": {
    "type": "array",
    "data": {
      "-": {
        "type": "array",
        "data": {
          "-": {
            "type": "string",
            "allowedTags": "i,b,a[href],code[class],mark[class]"
          }
        }
      }
    }
  }
}

@nickolasjadams
Copy link
Author

Ah. That's where I had misunderstood. I had assumed that nesting might be infinite. Thank you for clarifying! Love the work you guys have done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants