text styling headaches
Permalink
Hi,
Got some issues driving me mad. anyone help??
1. Why does TinyMCE keep the styles when you copy and paste content?and how can i stop this? For alot of my projects i have to copy and paste the content from existing sites and Its an absolute headache.
2. Why does tinyMCE change the font size in the html to 'small' when i have selected 12px from the content editor. Internet explorer does not seen to read this and display it more like size 14px.
3. Why cant i override the styles with my style sheets? If i have put all the content on all the pages and i decide to change it all from 10px to 12px, the style sheet doesnt override and take effect.
All these issues cause me to have to change each indivual content block style manually.
Also for the life of me i cant get the TinyMCE 'styles' to work. Isnt it ment to read styles from typography.css?
To conclude i dont know if its something i dont know or do wrong but i find the whole process of styling content with C5 really painful and long.
Please if someone knows a good solution please help me!! i love concrete5 and dont want to have to move cms's due to this.
thanks
Got some issues driving me mad. anyone help??
1. Why does TinyMCE keep the styles when you copy and paste content?and how can i stop this? For alot of my projects i have to copy and paste the content from existing sites and Its an absolute headache.
2. Why does tinyMCE change the font size in the html to 'small' when i have selected 12px from the content editor. Internet explorer does not seen to read this and display it more like size 14px.
3. Why cant i override the styles with my style sheets? If i have put all the content on all the pages and i decide to change it all from 10px to 12px, the style sheet doesnt override and take effect.
All these issues cause me to have to change each indivual content block style manually.
Also for the life of me i cant get the TinyMCE 'styles' to work. Isnt it ment to read styles from typography.css?
To conclude i dont know if its something i dont know or do wrong but i find the whole process of styling content with C5 really painful and long.
Please if someone knows a good solution please help me!! i love concrete5 and dont want to have to move cms's due to this.
thanks
Hey, this adam i'm talking too, right? can't answer most of those questions about tinymce. you might be better off delving into tinymce's website. with the third question though, yeah, sometimes it can be a bit tricky if there's styles set in multiple places. if you're trying to override stuff, you can make style rules more explicit (make the selector rule longer for example), make sure you clear your browser's cache, and if all else fails use !important on items that you can't override. You're using firebug to help you see what's happening right?
Hey Tony yes this is Adam. Happy new year and i hope your well.
Thanks for the heads up. I will explore the tinymce issues on there website. I will give !important a go. and also thanks for reminding me to uses firebug as i use it for everything else but havnt used it to look into the styling issues!
Many thanks.
Thanks for the heads up. I will explore the tinymce issues on there website. I will give !important a go. and also thanks for reminding me to uses firebug as i use it for everything else but havnt used it to look into the styling issues!
Many thanks.
Do you know how to add an h4 tag into the Format dropdown of the tinymce?
I figured that you would just need to update the concrete/js/tiny_mce_309/themes/advanced/editor_template_src.js or concrete/js/tiny_mce/themes/advanced/editor_template_src.js
but that doesn't seem to work. I would like to be able to have an h4 and h5 tag added to the format drop down instead of having them in the styles, and the h1, h2, h3 in the format.
I figured that you would just need to update the concrete/js/tiny_mce_309/themes/advanced/editor_template_src.js or concrete/js/tiny_mce/themes/advanced/editor_template_src.js
but that doesn't seem to work. I would like to be able to have an h4 and h5 tag added to the format drop down instead of having them in the styles, and the h1, h2, h3 in the format.
The way to avoid all text issues with style is a simple fix, however it will wipe out all formatting as well. i.e. no frames, table layouts, etc. All you have to do is copy the area you want and then paste it to a siple text editing program such as Notepad for people that have PCs. then copy and paste it from the notepad to the tinyMCE. Thus copying nothing but pure text for you to reformat anyway you desire! I hope that is what you were asking and it helps you.
Change the editor from Simple to Business in the Site Wide Settings (Rich Text Editor), then it will show a Clipboard with a T on it. That means Paste as Plain Text. This avoids having to paste anything through a text editor.