bootstrap-wysihtml5 icon indicating copy to clipboard operation
bootstrap-wysihtml5 copied to clipboard

"color": true, but the color does not apply

Open togoenvogue opened this issue 11 years ago • 6 comments

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

togoenvogue avatar May 05 '13 14:05 togoenvogue

Hello,

I have the same issue. Any idea?

Thank you!

julioElpabo avatar May 17 '13 09:05 julioElpabo

Hey @togoenvogue and @julioElpabo did either of you ever figure this out? I am having the same issue.

ARH3 avatar Jul 19 '13 20:07 ARH3

Unfortunately not, still couldnt get a solution.

2013/7/19 ARH3 [email protected]

Hey @togoenvogue https://github.com/togoenvogue and @julioElpabohttps://github.com/julioElpabodid either of you ever figure this out? I am having the same issue.

— Reply to this email directly or view it on GitHubhttps://github.com/jhollingworth/bootstrap-wysihtml5/issues/248#issuecomment-21273798 .

JOHN KOMLA Directeur Général ====== * * * ======= TOGO EN VOGUE Développement de sites et applications web Hébergement Linux et Windows Développement des solutions Web SMS Formation pratique et coaching en Dreamweaver, Fireworks, xHTML, PHP-MySQL, JAVA, CSS, C#.NET ====== * * * ======= 90, bvd du 30 Aout A coté de la pharmacie Béthel, Adidogomé BP : 81 355, Lomé-Togo Bureau : (00228) 22 39 48 99 Mobiles (00228) 98 77 97 34 / 90 19 95 22 Skype : togoenvogue Plateforme du web SMS : www.letavi.mobi Nos services : www.togoenvogue.net Portail d'information : www.togoenvogue.com Économie de carburant : www.ecarburant.com Email : [email protected] Skype : togoenvogue

togoenvogue avatar Jul 19 '13 21:07 togoenvogue

Okay I figured it out @togoenvogue... at least for me. If you look at line 453 of bootstrap-wysihtml5 / src / bootstrap-wysihtml5.js it says this:

stylesheets: ["./lib/css/wysiwyg-color.css"], // (path_to_project/lib/css/wysiwyg-color.css)
You need to direct that to the css file located in /lib/css/wysiwyg-color.css. IMO this is awful practice to have this one random css file with some random classes by itself, so what I did was copy/paste that entire file into the bottom of bootstrap-wysihtml5 / src / bootstrap-wysihtml5.css and then point like 453 to that file. This way I have 1 new css file instead of 2.

When it's all said and done, I only copied 2 files from this repo into my app:

  1. bootstrap-wysihtml5 / src / bootstrap-wysihtml5.js
  2. bootstrap-wysihtml5 / src / bootstrap-wysihtml5.css (with appended with extra classes from /lib/css/wysiwyg-color.css

ARH3 avatar Jul 20 '13 00:07 ARH3

Thank your ARH3. This was seriously helpful, could have not solved it alone. Thank you once again !!!

2013/7/20 ARH3 [email protected]

Okay I figured it out @togoenvogue https://github.com/togoenvogue... at least for me. If you look at line 453 of bootstrap-wysihtml5 / src / bootstrap-wysihtml5.js it says this:

stylesheets: ["./lib/css/wysiwyg-color.css"], // (path_to_project/lib/css/wysiwyg-color.css)

You need to direct that to the css file located in * /lib/css/wysiwyg-color.css_. IMO this is awful practice to have this one random css file with some random classes by itself, so what I did was copy/paste that entire file into the bottom of *bootstrap-wysihtml5 / src / bootstrap-wysihtml5.css_ and then point like 453 to that file. This way I have 1 new css file instead of 2.

When it's all said and done, I only copied 2 files from this repo into my app:

  1. bootstrap-wysihtml5 / src / bootstrap-wysihtml5.js
  2. bootstrap-wysihtml5 / src / bootstrap-wysihtml5.css * (with appended with extra classes from /lib/css/wysiwyg-color.css*

— Reply to this email directly or view it on GitHubhttps://github.com/jhollingworth/bootstrap-wysihtml5/issues/248#issuecomment-21285322 .

JOHN KOMLA Directeur Général ====== * * * ======= TOGO EN VOGUE Développement de sites et applications web Hébergement Linux et Windows Développement des solutions Web SMS Formation pratique et coaching en Dreamweaver, Fireworks, xHTML, PHP-MySQL, JAVA, CSS, C#.NET ====== * * * ======= 90, bvd du 30 Aout A coté de la pharmacie Béthel, Adidogomé BP : 81 355, Lomé-Togo Bureau : (00228) 22 39 48 99 Mobiles (00228) 98 77 97 34 / 90 19 95 22 Skype : togoenvogue Plateforme du web SMS : www.letavi.mobi Nos services : www.togoenvogue.net Portail d'information : www.togoenvogue.com Économie de carburant : www.ecarburant.com Email : [email protected] Skype : togoenvogue

togoenvogue avatar Jul 20 '13 02:07 togoenvogue

Thanks @ARH3 .

archanavhire avatar Jul 15 '14 11:07 archanavhire