and connected it to the RTE. The styles show up in the RTE:
But when applied, they do not effect the style to the copy selected. They don't stick, the html is unchanged. The styles show up in the RTE but do not seem to work.
The website interface features a darkgray body background, when attached to the RTE - this bodybg style created the well known black background in RTE issue.
The rqeditor.css was created specificly to solve the black RTE background issue and to provide the RTE styles requested. Both style sheets are attached to the sites master template as below:
After writing this out, I realized seperate style sheets are not necessary and simplified the issue by:
adding the .mceContentBody styles and the RTE styles to the bottom of the interface.css
removing from the mastre template
Now, I have one less stylesheet and the RTE black background issue is still fixed. The RTE field does reflect bold, itallic, and links applied from the main RTE menu bar but the styles are ineffective. Recreating styles for test.
Glad you got it all working. Just for reference you never needed to use the TinyMCE CSS in the Master template, just in the back end. The end user would never see it or need to download it.
Thanks but I did not get it all working. The styles displayed in the RTE still do not stick. They do not effect the main content RTE field. I recreated each style manually in the Stylesheets section of the admin for test but it did not effect the root issue. The styles still show up in the RTE menu but they still do not effect the selected copy. View html after applying reveals no cheange. It acts like the styles are not allowed or that it's not the right field type. Here's the RTE datatype properties:
it looks like your CSS selectors are not valid. This goes back to your Alias value in each of those styles. The values in there need to be class names or simple element selectors (such as .highlight, h1, h2, etc.). Writing out "Body Hightlight" is not a valid CSS selector. So, update your Alias values AND associated stylesheet and you should se the styles appear.
So, here's an example. Set the alias of Heading 3 to ".heading3", and update the associated style with this:
editor styles show up in RTE but are not applied to html
I have added a style sheet contining only:
Added RTE available styles:
and connected it to the RTE. The styles show up in the RTE:
But when applied, they do not effect the style to the copy selected. They don't stick, the html is unchanged. The styles show up in the RTE but do not seem to work.
Any suggestions appreciated.
Can you include in this thread what your style aliases look like?
Thanks,
Nik
If i understand correctly, your styles looks like they should in the editor, put is not working on the website?
If thats the issue, you need to add all the styles you have created , shown in your editor dropdownlist, to the runway stylesheet.
The runway.css is not in use in this site.
Background:
The website interface features a darkgray body background, when attached to the RTE - this bodybg style created the well known black background in RTE issue.
The rqeditor.css was created specificly to solve the black RTE background issue and to provide the RTE styles requested. Both style sheets are attached to the sites master template as below:
The styling aliases, in fact the rqeditor.css looks like this:
Thanks in advance.
Attaching rqedior.css did correct the black background issue.
More info:
After writing this out, I realized seperate style sheets are not necessary and simplified the issue by:
Now, I have one less stylesheet and the RTE black background issue is still fixed. The RTE field does reflect bold, itallic, and links applied from the main RTE menu bar but the styles are ineffective. Recreating styles for test.
Hi Teena,
Glad you got it all working. Just for reference you never needed to use the TinyMCE CSS in the Master template, just in the back end. The end user would never see it or need to download it.
Rich
Hi Rich,
Thanks but I did not get it all working. The styles displayed in the RTE still do not stick. They do not effect the main content RTE field. I recreated each style manually in the Stylesheets section of the admin for test but it did not effect the root issue. The styles still show up in the RTE menu but they still do not effect the selected copy. View html after applying reveals no cheange. It acts like the styles are not allowed or that it's not the right field type. Here's the RTE datatype properties:
Hi,
it looks like your CSS selectors are not valid. This goes back to your Alias value in each of those styles. The values in there need to be class names or simple element selectors (such as .highlight, h1, h2, etc.). Writing out "Body Hightlight" is not a valid CSS selector. So, update your Alias values AND associated stylesheet and you should se the styles appear.
So, here's an example. Set the alias of Heading 3 to ".heading3", and update the associated style with this:
Perfect and so simple a fix once you know.
Thanks for your help.
is working on a reply...