< Templates : Scripts used by Majestics >
|
|
Created: March 10, 2008 09:18 / Edited: March 10, 2008 09:27 Blockquote?I'm probably missing something very obvious... but I'm having some trouble getting the right style onto a chunk of quoted text.There's no "blockquote" option in the WYSIWYG editor thing, and I do want to make sure the style will be consistent through all articles, so it made sense to me to just put in the usual HTML tags and set a style for blockquote in the template. I thought that should work, right? But the style doesn't seem to be applied to the text, and when I go back and reopen the article in Edit, and check the HTML view, the blockquote tags are gone. What is the right way to set off a blockquote from ordinary article text with Majestic? What am I doing wrong? Tags: None. |
|
|
1
Created: March 10, 2008 10:12
Hi Jen,
The WYSIWYG editor allows certain tags and filters out everything else. Blockquote isn't supported at the moment, but I've added it to 1.4.1 so you can use it. As this change only affects one file, I'll email the file to you so you can try working with this right away. Hope this is OK! |
|
|
2
Created: March 10, 2008 10:30
Perfect! - that was almost too easy -
Thanks, Ben! of course, I still can't seem to apply styles to the blockquote, but at least the blockquote tags are there and the text is indented so I can see it works! That will do nicely for now. :) |
|
|
3
Created: March 10, 2008 11:47
You can use CSS in your site template and/or the area template to affect the blockquote tag. Try this:
blockquote {background-color: #ccc; border: 1px solid #000; color: #000; padding: 4px;} Place this at the end of the last field in the site template (the stylesheet) or at the end of the last field in the area template (the area-specific stylesheet). Then save and see if it works. You may need to do a hard refresh (CTRL+SHIFT+F5) to pick up the changes. |
|
|
4
Created: March 10, 2008 12:45
CSS in template is what I've been doing but it still isn't taking effect.
Maybe I'm stuck in a cache somewhere between me and my webhost (not browser: clearing cache and/or hard reload has no effect) - I'll try logging out of admin and go back to it in the morning, see if that makes a difference. edit: of course I couldn't wait until morning... logged out, cold restart on computer, and all is well. CSS is doing its job. So, it must have been a cache thing of some sort... Anyway, all is well :) and I will now go away & get back to work, and stop bugging you! |
|
|
5
Created: March 10, 2008 13:02
I know the feeling of wanting to finish something - sometimes it's made me go to bed very late! Glad you got it sorted out.
|
You must be registered and logged in to post comments. Log in here.
Not registered? Register now!