Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"color": true, but the toolbar has no colour button #191

Closed
geekyme opened this issue Dec 22, 2012 · 6 comments
Closed

"color": true, but the toolbar has no colour button #191

geekyme opened this issue Dec 22, 2012 · 6 comments

Comments

@geekyme
Copy link

geekyme commented Dec 22, 2012

i initialized as follows:

$('#test').wysihtml5({
"font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
"emphasis": true, //Italics, bold, etc. Default true
"lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
"html": false, //Button which allows you to edit the generated HTML. Default false
"link": false, //Button to insert a link. Default true
"image": false, //Button to insert an image. Default true,
"color": true //Button to change color of font  
});

The colour button does not appear. Why is that?

@yusuf
Copy link

yusuf commented Dec 31, 2012

Make sure you are loading the files located in /src folder

And the path to the wysiwyg-color.css is correct!

@jhrabows
Copy link

jhrabows commented Jan 3, 2013

See also #183

@yusuf
Copy link

yusuf commented Jan 3, 2013

#jhrabows wouldn't it be easier if at the top a variable is set for path-to-app-css so users can easily change the path. As, not in all scenarios, we can have the css path in ./lib/css/wysiwyg-color.css, like when using a MVC framework!

Something like :
var csspath = (window.location.href).slice(0,(window.location.href).indexOf("/",(window.location.host).length+9))+"/lib/css/";

and change :

stylesheets: [csspath+"wysiwyg-color.css"]

BTW, great work!

@geekyme
Copy link
Author

geekyme commented Jan 6, 2013

Got it guys thanks.

@geekyme geekyme closed this as completed Jan 6, 2013
@togoenvogue
Copy link

Hello,
I have an issue with the "color": true property.
After calling :

$('#test').wysihtml5({
"font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
"emphasis": true, //Italics, bold, etc. Default true
"lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
"html": false, //Button which allows you to edit the generated HTML. Default false
"link": false, //Button to insert a link. Default true
"image": false, //Button to insert an image. Default true,
"color": true //Button to change color of font
});

I can see the color button there, but when I select a text and select a color, the text does not change color.

Do you have any idea please ?

Thank you

@nandodutra
Copy link

@togoenvogue I have the same issue that you had, you did solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants