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

Custom attach location. #5

Open
MBAnslow opened this issue Aug 24, 2020 · 0 comments
Open

Custom attach location. #5

MBAnslow opened this issue Aug 24, 2020 · 0 comments

Comments

@MBAnslow
Copy link

My main toolbar has a sub-toolbar to group and style particular toolbar elements roughly laid out follows:

<div id="editor-container">
    <div id="toolbar">
      <span class="ql-formats">
        <button class="ql-bold"></button>
        <button class="ql-italic"></button>
      </span>
     <div id="sub-toolbar">
          <span class="ql-formats">
                <button id="sub-button">sub-button</button>
         </span>
     </div>
    </div>
    <div id="editor"></div>
</div>

It isn't clear how to add a dynamic drop box to the sub-toolbar in my example. It just adds after the #sub-toolbar div on calling myDropDown.attach(quill) as per your drop down box example.

Is there a way to target where dynamic toolbar element can be added?

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

No branches or pull requests

1 participant