neokoenig / jQuery-gridmanager

A way of building rows and grids with built in editable regions; requires jQuery, jQueryUI, Bootstrap 3.x, & optional TinyMCE or CKEditor
http://neokoenig.github.io/jQuery-gridmanager/
461 stars 129 forks source link

GridManager and FontAwesome #97

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi,

I'm about to work with GridManager and I have a question in context with fontawesome.

I made a simple mvc project with components of GridManager as "jquery.gridmanager.css" and "jquery.gridmanager.js".

Everything works so far. Now as soon as I include the "fontawesome-all.min.js" (Font Awesome Pro 5.0.12 by @fontawesome - https://fontawesome.com) in BundleConfig.cs, the button "Select Column" does not have an icon anymore (see attached image) and the button "Add Editable Region" does not work anymore (nothing happens when click on it).

What can I do? Does FontAwesome 5 not work with GridManager? If there is no solution, could you tell me how to remove/hide this two buttons and how can I add custombuttons with the same functionality especially the "Add Editable Region"?

Thank you very much for your help.

Best regards. Ivan Huber

image

neokoenig commented 6 years ago

As mentioned via email, not tested yet with Fontawesome 5. The exclamation mark you see might be to do with whether you're using the free vs pro version. Also, FA5 seems to use SVG via JS which is quite a different technique to fonts;

I would recommend you use FA4, not FA5 for now.

ghost commented 6 years ago

Ok thanx. Is there a possibility to remove/hide this two buttons and make the same functionality by custom buttons and custom code?

neokoenig commented 6 years ago

You can disable editableRegionEnabled =false but that will disable the whole editable functionality.. really, this is a bug and not something easily worked around, except by using FA4; I can see if I can get a version working with FA5, but it's been ages since I touched this code!