Giter Site home page Giter Site logo

Comments (4)

sguionni avatar sguionni commented on September 16, 2024 1

You have to drag and drop your image file, or click on the area to open the file browser.

from kmsfroalaeditorbundle.

mufac avatar mufac commented on September 16, 2024 1

I think I know what is going on here. The bug is actually with all plugins that have underscores in their names (image_manager is affected but so are others like paragraph_style). The list of plugins is obtained here:

https://github.com/froala/KMSFroalaEditorBundle/blob/master/Form/Type/FroalaEditorType.php#L134

and used to populate the Froala pluginsEnabled config setting. The problem is that while underscores between words in the correct format for generating paths to asset files (JS/CSS), pluginsEnabled expects camelCase plugin names.

The solution is to apply Doctrine\Common\Util\Inflector::camelize() to the array elements before setting $p_view->vars [ "arrOption" ][ "pluginsEnabled" ] on the line referenced above (while still using the original values on lines 135 and 136).

from kmsfroalaeditorbundle.

rlataguerra avatar rlataguerra commented on September 16, 2024

well, thats not what I meant, I'm talking about that "Browse":
capture d ecran 2016-06-02 a 17 12 11

as it is on https://www.froala.com/wysiwyg-editor

from kmsfroalaeditorbundle.

sguionni avatar sguionni commented on September 16, 2024

Good job !
Just fixed and commited, thank you !

from kmsfroalaeditorbundle.

Related Issues (20)

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.