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

  1. das
  2. JCE Editor
  3. Friday, 27 November 2020
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
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.
  1. more than a month ago
  2. JCE Editor
  3. # 1
Accepted Answer Pending Moderation
Thank you!
  1. 3 weeks ago
  2. JCE Editor
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!