NetTalk Central

Author Topic: Having trouble getting the Redactor editor to work.  (Read 7593 times)

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Having trouble getting the Redactor editor to work.
« on: December 17, 2012, 06:33:23 PM »
Bruce,

I've made the 2 changes as outlined in the update documentation but the HTML editor does not appear on the form, just the raw html code.

Probably missing something simple but I can't find it.

Is there suupposed to be a redactor directory like the tiny_mce_jq directory in the web folder?

Regards

Parker

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Having trouble getting the Redactor editor to work.
« Reply #1 on: December 17, 2012, 11:15:05 PM »
>> Is there supposed to be a redactor directory like the tiny_mce_jq directory in the web folder?

no - it's much smaller (good, = faster) so it's in the Scripts folder. (and included in your all.js).

BUT - did you tick on support for it in the WebServer procedure, Scripts tab?

cheers
Bruce

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #2 on: December 18, 2012, 04:41:31 AM »
"BUT - did you tick on support for it in the WebServer procedure, Scripts tab?"

Yes, forgot that the first time but checked it on and unchecked the TinyMCE option.

On the field I checked Allow xHTML and selected Redactor as the Editor, but no joy  :'(

Regards

Parker

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Having trouble getting the Redactor editor to work.
« Reply #3 on: December 18, 2012, 05:25:24 AM »
ok, I think you'll need to experiment a bit to narrow it down.

try going to the webSever procedure, advanced tab, and turn _off_ all the combine and compress options. Report back if that works or not. (It's not a solution, but it is a clue.)

cheers
Bruce

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #4 on: December 18, 2012, 06:24:39 AM »
Bruce,

Yes, turning off all the compress/combine options did it!

Good call.

Regards

Parker

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Having trouble getting the Redactor editor to work.
« Reply #5 on: December 18, 2012, 07:02:52 AM »
ok, it means there's likely a problem in the gzipall.bat file - for some reason it's not running right on your machine. I suggest the following;

a) delete all the *.gz files in the \web\scripts; web\styles and web\themes\* folders
b) from the command line run gzipall.bat, and see if it gives any errors.
c) turn the "combined" option on first (not compressed) - run the browser, Press F5 on the address bar, and see if that works.
d) if it does tick on "serve pre-compressed files" and repeat.

Cheers
Bruce

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #6 on: December 18, 2012, 07:27:35 AM »
Bruce,

Followed the instructions and it does seem to work now.

New glitch however, if I put anything in the field using the editor and save the record, I can no longer open the form to edit the record again.

Seems to be Pop-Up related. If I change the form not to use pop-up then the form will open after a change to the data record.

Regards

Parker

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #7 on: December 18, 2012, 08:00:42 AM »
I reported the same problem in a post a few days ago, so you are not alone.  I want to replace TinyMCE with Redactor, since it has problems in IE 9.  I'll try Bruce's suggestions as well and report back later today.

Thanks,

Jeff

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #8 on: December 18, 2012, 08:10:21 AM »
Jeff,

I think we are headed for the same goal, replacing TinyMCE in hope of fixing the IE9 problem where the second update to the field does not get accepted.

I noticed in my current Redactor testing that there is a problem when the form is in Pop-up mode, turns out that my problem with TinyMCE also seems to be pop-up related.

If the form is not in pop-up mode the second and subsequent changes to the field are all accepted.

Perhaps Bruce will find a fix that will correct this for both editors.

Regards

Parker

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #9 on: December 19, 2012, 09:43:42 AM »
Parker,

     I just verified, both TinyMCE and Redactor have issues when used on a popup form, with all browsers I tested.  This includes IE9, Firefox 17 and Chrome 23.
     The issues are:
          1.  TinyMCE does not save data with a second update. 
          2.  When using Redactor, the popup form opens as a blank window with just the title bar.

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Having trouble getting the Redactor editor to work.
« Reply #10 on: December 21, 2012, 12:25:59 AM »
build 7.01 (which I'm hoping to upload today) should sort out the Redactor problem, and hopefully the TinyMCE one as well.

cheers
Bruce

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #11 on: December 23, 2012, 12:23:15 PM »
Bruce,

7.01 fixed the intial problem with Redactor but no joy for TinyMCE, the second update to a record when using IE 9 is not accepted in pop-up mode.

With the Redactor editor now if I use the insert image button, it places code in the field and now the record won't open again, just a blank form.

I tried allowing unsafe xHTML but it still will not allow me to edit the record.

Regards

Parker

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #12 on: December 23, 2012, 12:34:00 PM »
Bruce,

One more Redactor question.

Is there a way to get the content of the field to scroll within a defined area like the TinyMCE editor did?

Right now the field will expand to be as large as the content in the field being edited which can make for a very long web page.

Thanks

Parker

Skip Williams

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Having trouble getting the Redactor editor to work.
« Reply #13 on: December 23, 2012, 02:20:29 PM »
And another Redactor question... Can this spell checker http://jquery-spellchecker.badsyntax.co/redactor.html be added to the NT Redactor? Maybe at some point??

Thanks

Skip

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Having trouble getting the Redactor editor to work.
« Reply #14 on: December 27, 2012, 02:55:55 AM »
>> Is there a way to get the content of the field to scroll within a defined area like the TinyMCE editor did?
see http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=4142.0

regarding the spell-checker, yes it's possible, although these days somewhat unnecessary because most good browsers have spell-checking on text boxes on by default. It's also slightly more work than just adding the script, because you need the server-side component as well.

cheers
Bruce