google-code-export / lwrte

Automatically exported from code.google.com/p/lwrte
1 stars 0 forks source link

Can't get CSS into lwrte #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up lwrte as instructed
2. In the ' css: ['style.css'] ' setting, attempt every conceivable way of
pointing to the path of where my css file is stored. eg, 'style.css',
'../style.css', '../../style.css'. I even placed the same css file multiple
times in every directory of my website hoping one of them would pick up.

What is the expected output? What do you see instead?
I expect to see my CSS classes and/or ids appearing in the rte's CSS
dropdown box. Instead it always says 'no css'.

What version of the product are you using? On what operating system?
1.2, running on MAMP on Mac OSX Leopard. Php installed and working.

Please provide any additional information below.

I understand that CSS files are passed onto a 'styles.php' file to parse
them. In the javascript for the styles function, I setup an alert in the
'success' of the styles.php function being called. No alert popped up. I
did, however, get an alert to pop up when I placed it just above the
'success', just inside 'if(rte.css.length)' before the ajax is called.
Meaning that it attempts to start the CSS fetching function?

Original issue reported on code.google.com by movingho...@gmail.com on 25 Aug 2009 at 12:26

GoogleCodeExporter commented 9 years ago
the style.css is the style of the editors text so that you can see the H1 style 
of your site in the editor. it is not a way of adding a list of styles to the 
drop down.

To do that look at the example toolbar and modify 

ie if 
style.css has
h1{font-size:1.1em;border-bottom:1px solid green} 

then you will see a styled H1 tag in the editor

Original comment by spambot....@googlemail.com on 2 Sep 2010 at 8:27