Expresso
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5
Back to this add-on's main page
View Other Add-ons From PutYourLightsOn
Curly quotes [resolved]
General
Joe
|
Posted: 19 April 2011 04:47 PM |
|
|
|
Does Expresso convert the regular ” keystroke to curly (smart) quotes. This is something that Wygwam cannot do, so I’m hoping Expresso can.
|
|
|
PutYourLightsOn
|
Posted: 24 April 2011 04:08 PM |
# 1
|
|
Developer
|
no, and why exactly would it??
|
|
|
Joe
|
Posted: 24 April 2011 11:09 PM |
# 2
|
|
|
So that it’s consistent with the default, out-of-the-box behavior of ExpressionEngine textarea fieldtype.
|
|
|
PutYourLightsOn
|
Posted: 01 May 2011 09:21 AM |
# 3
|
|
Developer
|
ah good point, i’ll consider adding this in the next release
|
|
|
Bud Parr
|
Posted: 09 November 2011 01:18 PM |
# 4
|
|
|
Hi - not sure if and when you’re going to add this - I just checked on 1.7 and it doesn’t seem to be in there. Is there a hack that we can add to implement this? It’s bad typographical practice to use straight quotes in most cases.
|
|
|
PutYourLightsOn
|
Posted: 10 November 2011 07:36 AM |
# 5
|
|
Developer
|
hi bud, let me look into this and i’ll see if i can squeeze out an update to accommodate it…
|
|
|
Bud Parr
|
Posted: 10 November 2011 08:13 AM |
# 6
|
|
|
Very cool, thank you
|
|
|
PutYourLightsOn
|
Posted: 11 November 2011 07:14 AM |
# 7
|
|
Developer
|
ok, so after quite a bit of poking around, turns out this is possible with Expresso, however it requires setting the field’s text formatting to xhtml which can have undesirable results. for that reason i will post the necessary changes to achieve this rather than adding it to the core.
insert this line at the top of the replace_tag function in ft.expresso.php:
$data = str_replace('"', '"', $data);
and change the text_format setting beneath it:
'text_format' => 'xhtml',
let me know if that works for you.
|
|
|
Bud Parr
|
Posted: 15 November 2011 12:02 PM |
# 8
|
|
|
Thanks very much - really appreciate it. Do you have any idea what the “undesirable results” are?
|
|
|
PutYourLightsOn
|
Posted: 15 November 2011 12:50 PM |
# 9
|
|
Developer
|
in general you probably won’t see any effects, but in some specific cases you might. this is taken from a previous support request, hope it clarifies things:
setting text_format to “xhtml” will ensure that any text is output as xhtml. so if you have a textarea field and simply enter a line of text it will be wrapped in a paragraph tag. Expresso (which uses CKEditor) outputs xhtml by default, however EE sometimes feels the need to add a paragraph tag at the end of it. for that reason i recommend setting text_format to “none”, which means that EE won’t alter the output at all.
|
|
|
Bud Parr
|
Posted: 15 November 2011 12:51 PM |
# 10
|
|
|
Thanks again, that’s helpful.
Bud
|
|
|
PutYourLightsOn
|
Posted: 15 November 2011 01:36 PM |
# 11
|
|
Developer
|
gladly
|
|
|