Maybe this option is already in JCE but I looked and couldn't find it. By default JCE seems to default to single and double straight quotes. Is it possible to have the option for curly quotes as well (no instead -- would like to have both types available)?
Thanks for your time.
DS
You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
- Support
- Forum
- MediaBox
- JCE Editor
- Curly Quotes In Addition to Straight Quotes
Accepted Answer
Pending Moderation
Is it possible to have the option for curly quotes as well (no instead -- would like to have both types available)?
There is no option for this, but you can create a custom script that can apply the quotes with a certain key combination.
Create a file called editor.js in /media/jce/js and add the following:
(function() {
tinyMCE.onAddEditor.add(function (mgr, ed) {
ed.onKeyUp.add(function(ed, e) {
if (e.keyCode == 222 && e.shiftKey && e.ctrlKey) {
ed.execCommand('mceReplaceContent', false, '“{$selection}”');
}
});
});
})();
Then in the editor, select some text, and use CTRL + SHIFT and the double quote key on your keboard to apply the curly quotes to the selected text.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
- more than a month ago
- JCE Editor
- # 1
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »