Giter Site home page Giter Site logo

btbutton's People

Contributors

murznn avatar sestowner avatar smartcorestudio avatar smonetti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

btbutton's Issues

Add font-awesome, glyphicon css support to plugin

Some CMS which use that plugin may not use Bootstrap for editing content.
As a result - Bootstrap buttons provided by plugin will not have desired styles in CKeditor.

We can use cdn to attach needed css.

button grayed out?

for me the button is always grayed out, unless i enable widgetbootstrap for some reason. What's the dealio? (cool plugin btw)

Font Awesome / Glyphicon classes not being applied

I've tried the different settings for buttons and all of them seem to work with the exception of the icons tab options. Adding an icon name to either FA/Glyphicon fields doesn't change the tag output, so no icon is produced. I'm using CKEditor 4.3.5 in Expression Engine 2.9. We already use Font Awesome on our site so seeing that supported is great. Is there something I'm missing to make the proper classes/html appear for icons?

Attribute "href" doesn't change

Changing the URL option in dialog settings doesn't have any effect in the href attribute of the element.
I found a solution removing the attribute 'data-cke-saved-href' after changing the href in plugin.js.

if (this.data.href) { $el.attr('href', this.data.href); this.element.$.removeAttribute('data-cke-saved-href'); }

After changing a button size, can't change size back to normal.

To reproduce

Create a button, select a size option other than Normal (Extra Small, Small, Large)
Click OK
The button is sized.
Reopen the button properties dialog and switch the button back to size Normal.
Click OK
The button size doesn't change.

Resolution

This can be resolved by changing plugin.js near line 35
From:

if (this.data.btnsize) {
    $el.removeClass('btn-xs btn-sm btn-lg').addClass(this.data.btnsize);
}

To:

$el.removeClass('btn-xs btn-sm btn-lg');
if (this.data.btnsize) {
   $el.addClass(this.data.btnsize);
}

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.