Code Monkey home page Code Monkey logo

Comments (11)

bertoost avatar bertoost commented on June 11, 2024 1

Hm I can't figure it out either.. Seems not to work at all, even with a scrollableContainer set to it's parent container element with ID #content.
I will contact Froala team about it.

from craft-3-froala-wysiwyg.

bertoost avatar bertoost commented on June 11, 2024

I understand. I have to figure that out. Hopefully I can get to it tomorrow. Hang on!

from craft-3-froala-wysiwyg.

reganlawton avatar reganlawton commented on June 11, 2024

Thanks for looking into this one. I’ll let the client know this is being looked into. Again thanks for your support.

from craft-3-froala-wysiwyg.

reganlawton avatar reganlawton commented on June 11, 2024

Hmm yeah it’s a weird one 🤷‍♂️

from craft-3-froala-wysiwyg.

dejanmartinovic avatar dejanmartinovic commented on June 11, 2024

Editor itself cannot be set as the scrolalbleContainer.
You could put there a parent which is scrollable.
Please find a simple example here: https://jsfiddle.net/dejan_m/Lzq1b3jn/4/
Best, Dejan

from craft-3-froala-wysiwyg.

bertoost avatar bertoost commented on June 11, 2024

Thanks @dejanmartinovic ! I understand. But I tried with it's parent element as scrollable container but that didn't work either

from craft-3-froala-wysiwyg.

reganlawton avatar reganlawton commented on June 11, 2024

I’m sick today but I might give this a looksie tomorrow if I’m feeling better. I did see that it does initialises the sticky toolbar just doesn’t trigger it might need some additional code.

Also IDs won’t work as my case we use it inside a Matrix field and which need to support multiple text blocks. This also has another issue where it could have multiple of toolbars layered But this said if the toolbar stickiness is only till the bottom of the container this could be fine.

from craft-3-froala-wysiwyg.

bertoost avatar bertoost commented on June 11, 2024

@reganlawton I am testing it with the #content ID of Craft. It's the container for all fields. But that's not working either for a normal field (not matrix).

Ps. Hopefully you get better soon

from craft-3-froala-wysiwyg.

reganlawton avatar reganlawton commented on June 11, 2024

Yeah no have slept through the worst of it. I’ll have a look at it tomorrow I might go into the office early and see what I can do.

from craft-3-froala-wysiwyg.

bertoost avatar bertoost commented on June 11, 2024

FYI; I can't get it to work. I guess it has something to do with how Craft's CP is working (css's flex-box) regarding how Froala's editor is checking the scrolling position. I can imagine this is annoying, but I am getting a little bit out of options.

from craft-3-froala-wysiwyg.

reganlawton avatar reganlawton commented on June 11, 2024

@bertoost I haven't gotten a chance to troubleshoot with the new information, been smashed with projects lately. Let's hope I get more luck I'm on the project this is affecting later this week and I'll assign some out of office hours towards it.

from craft-3-froala-wysiwyg.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.