https://twill.io logo
Join Discord
Powered by
# ❓questions
  • u

    24C Felix

    06/21/2022, 1:33 PM
    Hello there! Im running a GitLab CI/CD pipeline which builds composer and npm packages and also my compiled css and js for production. Unfortunately the CSS of twill is not generated. Any advice?
  • h

    Harings Rob

    06/21/2022, 1:36 PM
    Hey @24C Felix, do you have custom vue components that are used in Twill?
  • h

    Harings Rob

    06/21/2022, 1:36 PM
    Because otherwise you can run
    php artisan twill:update
    during ci to copy the core assets to the public folder.
  • u

    24C Felix

    06/21/2022, 1:37 PM
    I don't have any custom components. Thank you very much!
  • u

    24C Felix

    06/21/2022, 1:47 PM
    It is definitely working!
  • g

    Gvido Blue Fox

    06/21/2022, 1:55 PM
    I created simple form on the custom page. How i can get data from inputs? For example, i want output data to alert() with ?
  • k

    kalle

    06/21/2022, 2:07 PM
    You can create default HTML button and just append CSS class of a17-button component
  • g

    Gvido Blue Fox

    06/21/2022, 2:10 PM
    Ok. But this is vue. So there is some kind of reactive value that I can get.
  • g

    Gvido Blue Fox

    06/21/2022, 2:10 PM
    Or not?
  • k

    kalle

    06/21/2022, 2:16 PM
    Im not sure for custom pages, but on forms all component states are stored in vuex store. So you can use getter to retrive value for your specific input components.
  • g

    Gvido Blue Fox

    06/21/2022, 2:17 PM
    Let's ask @ifox about it)
  • i

    ifox

    06/21/2022, 2:23 PM
    you'd need to bind them in the context you're using them. for example, the date picker component emits
    input
    and
    blur
    events
  • g

    Gvido Blue Fox

    06/21/2022, 2:31 PM
    Is there an example of how to do this?
  • g

    Gvido Blue Fox

    06/21/2022, 2:48 PM
    @ifox
  • a

    amargoCactus

    06/21/2022, 10:51 PM
    hello, can i upload a svg in the media library?
  • k

    kalle

    06/21/2022, 10:54 PM
    .svg
    is enabled by default, so you should be able to upload it.
    'allowed_extensions' => ['svg', 'jpg', 'gif', 'png', 'jpeg'],
    https://twill.io/docs/getting-started/configuration.html#media-library
  • u

    user

    06/22/2022, 6:43 AM
    is there a way to add a live page editor? and is there any. ive obly found php page builder
  • g

    Gvido Blue Fox

    06/22/2022, 8:02 AM
    And yet?)
  • k

    kalle

    06/22/2022, 8:39 AM
    Hello, there is no global live page editor. Twill uses block editor to dynamicly create pages/ content on frontend. https://twill.io/docs/block-editor/
  • m

    Mouse83

    06/22/2022, 11:28 AM
    Hi, I`m using twill 2.8.2, will I be able to nest repeaters or add block inside a a repeater ?
  • m

    Mouse83

    06/22/2022, 11:29 AM
    I`ve tried both, and in first solution the nested repeater gets sent to backend as "blocks" and does not save (Ive modified both repositories to save both relations), adding HasBlocks on repository yileds 500 "missing array key "type"
  • m

    Mouse83

    06/22/2022, 11:31 AM
    when adding block to repeater the admin view does not render and yields 500: Undefined variable $form_fields (View: .../vendor/area17/twill/views/partials/form/utils/_block_editor_store.blade.php)
  • i

    ifox

    06/22/2022, 1:12 PM
    Hi @Mouse83 the
    block_editor
    field is not meant to be used inside of a
    repeater
    field. you can however use a
    repeater
    field inside a block of your
    block_editor
    field.
  • m

    Mouse83

    06/22/2022, 1:44 PM
    @ifox thanks for prompt reply
  • d

    dedli

    06/22/2022, 1:48 PM
    Hi @ifox thanks a lot it works. If you need tables you should add
    Copy code
    'type' => 'tiptap'
    'toolbarOptions' => [  "table"]
    . Can you tell me please how can I find out all toolbarOptions that I have for this text editor? I visit this site https://tiptap.dev/examples/tables but I can not understand. Thanks
  • d

    dedli

    06/22/2022, 2:34 PM
    Works only this:
    Copy code
    ['header' => [2, 3, 4, 5, 6, false]],
          'bold',
          'italic',
          'underline',
          'strike'
          "blockquote",
          "code-block",
          ['list' => 'ordered'],
          ['list' => 'bullet']
    this not workin:
    Copy code
    ["script" => "super"],
          ["script" => "sub"],
          ['indent' => '-1'],
          ['indent' => '+1'],
          ["align" => []],
          ["direction" => "rtl"],
          'link',
          "clean",
  • k

    kalle

    06/22/2022, 2:48 PM
    Twill tiptap is using imports from
    tiptap-extensions
    npm package. From Twill component you can see all options supported, which you pass in props. https://github.com/area17/twill/blob/2.x/frontend/js/components/WysiwygTiptap.vue#L20-L122
  • d

    dedli

    06/22/2022, 4:17 PM
    Thanks! I see link is commented https://monosnap.com/file/iE2ynsqXVWbRZuOZ6ISIRhkCjcbUMg. What is bubble mode and how i can use link?
  • i

    ifox

    06/22/2022, 4:51 PM
    unfortunately Tiptap link support is not great. For context, we added tiptap for its table support. We still use quill for the rest and usually we are providing editors a dedicated block for tables with only the table option enabled in tiptap.
  • i

    ifox

    06/22/2022, 4:52 PM
    unless you absolutely need the table in the same wysiwyg block, this shouldn't be an issue
1...347348349...484Latest