0
Welcome Guest! Login
0 items Join Now

Help with editor converting single quotes to & # 3 9 ;

  • Help with editor converting single quotes to & # 3 9 ;

    Posted 18 years 1 week ago
    • When entering in a javascript code the JCE editor converts my single quotes to a '& # 3 9 ;' so it will not work. I got this working in another site but I don't know how. Anyone? I understand storing them as this code ''' but shouldn't it be convertewd back when then page is made.
    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: Help with editor converting single quotes to & # 3 9 ;

    Posted 18 years 1 week ago
    • You could try turning off the JCE "Clean Up Code" option - myself, I'd just disable the WYSIWYG editor and then add the code.

      Cheers!
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
  • Re: Help with editor converting single quotes to & # 3 9 ;

    Posted 18 years 1 week ago
    • I tried tunring off the JCE "Clean Up Code" option before with no help but the work around is a good idea. I will try it. I just thought there was some hack that changed this. You can have single quotes in other part of a content item just not javascript. Just doing a simple popup. There is probable a better option.

      Thanks a bunch.
    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: Help with editor converting single quotes to & # 3 9 ;

    Posted 18 years 1 week ago
    • David Earley wrote:
      I tried tunring off the JCE "Clean Up Code" option before with no help but the work around is a good idea. I will try it. I just thought there was some hack that changed this. You can have single quotes in other part of a content item just not javascript. Just doing a simple popup. There is probable a better option.

      Thanks a bunch.

      Apologies if this is redundant - you can disable the WYSIWYG Editor two ways:

      1) Log in the admin backend, choose Site/ User Manager.
      In the User Manager screen click on the username that you desire to edit.
      In the User Edit screen and in the Parameters area choose No WYSIWYG Editor.
      Click Save.

      2) Log in the admin backend, choose Site/ Global Configuration.
      On the first tab (Site) you may choose the Default WYSIWYG Editor.

      Option 1) is on a user level, option 2 is on a global level - ALL users will be affected.

      Fyi, anytime that I use code in modules I disable the WYSIWYG editor. ;)

      Cheers!

      *edit*
      Also I should note that opening module for editing that has code in it with the WYSIWG editor enabled may trash your code - of course as long as you choose Cancel to back out of the module edit screen and not Apply or Save no changes will be made.
    • Last Edit: 18 years 1 week ago by Bob Ateah.
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!

Time to create page: 0.047 seconds