NetTalk Central

Author Topic: TinyMCE/Redactor progress??  (Read 6556 times)

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
TinyMCE/Redactor progress??
« on: February 04, 2013, 01:34:49 PM »
Bruce, 

Any ETA on fixing the issue with TinyMCE?  Still, can only add text once on first insert or update.

Thanks,

Jeff King

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: TinyMCE/Redactor progress??
« Reply #1 on: February 25, 2013, 07:10:55 AM »
You can also see this problem on the CapeSoft Support Forums.
http://clarion.capesoft.com/

Regards

Johan de Klerk
« Last Edit: February 25, 2013, 07:12:26 AM by Johan »
Clarion 10, NT 11.57

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: TinyMCE/Redactor progress??
« Reply #2 on: March 17, 2013, 06:44:05 AM »
Bruce,

There were two questions about Redactor recently that you responded to.  Can you respond to this post?  Do you know what the problem is?  Can it be fixed soon?

Thanks,

Jeff King

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: TinyMCE/Redactor progress??
« Reply #3 on: March 18, 2013, 02:23:28 AM »
Hi Jeff,

It's been fixed for the 7.07 build.

I've also added the ability to set the editor to use at the WebServer procedure level (ie globally.) This should make changing between editors easier (even with the ability to change at runtime if desired.)

cheers
Bruce

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: TinyMCE/Redactor progress??
« Reply #4 on: March 18, 2013, 04:48:19 AM »
Bruce,

I just want to be clear, I was asking about my previous post where Redactor and TinyMCE would only allow one initial edit.  Has this been fixed in 7.07?  If so great!

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: TinyMCE/Redactor progress??
« Reply #5 on: March 18, 2013, 05:03:32 AM »
yes.

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: TinyMCE/Redactor progress??
« Reply #6 on: March 19, 2013, 03:38:40 AM »
Bruce,

Excellent!   I have 6 NetTalk apps, including the one that uses TinyMCE and Redactor.  All these run through the MultiHost app, so I'll need to recompile everything.  I'll report back later with my progress.

Thanks,

Jeff

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: TinyMCE/Redactor progress??
« Reply #7 on: March 25, 2013, 05:35:23 PM »
Bruce,

Just wanted to report back after re-compiling all my apps in 7.07.

The TinyMCE/Redactor issue seems to be fixed.  I can add text edits multiple times in both TinyMCE and Redactor.  I do have one app that is not saving text edits with TinyMCE but is with Redactor.  Another app that has only TinyMCE does save all text edits as expected.  Perhaps there is an issue with both being in the same app and I'm still investigating this issue.

On a similar note, I have another app that does not have TinyMCE in it but gives the following error message upon saving a record:

          tinyMCE.  Save Failed.  'tinyMCE' is undefined.

Clicking OK does save the record but the error message is still a problem.  I'll look at the app but wondered if you had a thought here?

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: TinyMCE/Redactor progress??
« Reply #8 on: March 25, 2013, 08:50:53 PM »
thanks  - I've fixed that for 7.08.
If it's a problem in the meantime for you then let me know and I can tell you what to change in the JavaScript code.

cheers
Bruce

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: TinyMCE/Redactor progress??
« Reply #9 on: March 26, 2013, 07:31:19 AM »
Bruce,

     Yes, please send the fix I need to make in the JS code, as another app that does not use TinyMCE has the same issue.

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: TinyMCE/Redactor progress??
« Reply #10 on: March 26, 2013, 09:54:28 PM »
open web/scripts/jquery.nt-dialog.js
search for alert
you should fine two instances of it close together.
comment them both out using the // syntax.

The beginning of the save method ends up like this;

ntdialog.prototype.save = function (event){
   this.saved[this.level] = 1;
   try{
      tinyMCE.triggerSave(true,true);           
      $('.nt-tinymce').each(function(index){     
            try{             
               tinyMCE.execCommand('mceRemoveControl',true,$(this).attr('id'));
            } catch (e) { //alert('tinyMCE. mceRemoveControl failed. ' + e.message);
            }                  
         });   
   } catch (e) { //alert('tinyMCE. Save failed. ' + e.message);
   }


Note that you should make this change in your \clarion8\accessory\libsrc\netweb\scripts folder, and then run the Copyall.Bat file in your app folder.


cheers
Bruce

kingja

  • Sr. Member
  • ****
  • Posts: 261
    • View Profile
    • Email
Re: TinyMCE/Redactor progress??
« Reply #11 on: March 28, 2013, 06:11:40 AM »
Bruce,

     As per your instructions, I made the change to the js file, in the netweb\scripts folder.  Then ran the Copyall.bat file.  This "rebuilt" the web folder, which I then moved out to the server.  The app still produces the error.  Note that this app runs from the multi-host exe.  Should I do the same and get a new web folder for the host app?

Thanks,

Jeff

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: TinyMCE/Redactor progress??
« Reply #12 on: March 28, 2013, 06:30:05 AM »
I forgot to mention you need to run Gzipall.bat after copyall.bat
yes, I would do this for the host, and all dll's inside the host.

cheers
Bruce