Forum

[SOLVED] CK Editor
 
Notifications
Retirer tout

[SOLVED] CK Editor

9 Posts
3 Utilisateurs
0 Reactions
8,814 Vu
(@swyngy)
Posts: 32
Active Member
Début du sujet
 
[#2879]

Hi everybody
On the version 5.2.0, when you write text into textbox with the new editor you have to click 2 times on "save" to save your modification.


 
Posté : 11 Jan PM 16:011
(@babynus)
Posts: 14952
Membre Admin
 

Cannot reproduce.
Is it systematic ?
Whick browser/version are you using ?
Do you have any error in the browser console ?


 
Posté : 11 Jan PM 16:011
(@swyngy)
Posts: 32
Active Member
Début du sujet
 

Is it systematic ?

yes

Which browser/version are you using ?

IE11 and Chrome 47

Do you have any error in the browser console ?

Nothing


 
Posté : 11 Jan PM 17:011
(@babynus)
Posts: 14952
Membre Admin
 

Can you do this test :
1) Change description.
2) Move cursor into another field.
3) Save.

Is description correctly saved ?


 
Posté : 11 Jan PM 17:011
(@swyngy)
Posts: 32
Active Member
Début du sujet
 

yes 😉


 
Posté : 11 Jan PM 18:011
(@pipobru)
Posts: 180
Active Member
 

I have sames ascertainment with postgresql and apache 2.0 ans last php version.


 
Posté : 11 Jan PM 18:011
(@babynus)
Posts: 14952
Membre Admin
 

Fixed !
For information, issue does not occur if you save using [CTRL]+S.

Fix is to replace saveObject() function in /view/js/projeqtor.js from

function saveObject() {
  if (waitingForReply)  {
    showInfo(i18n("alertOngoingQuery"));
    return true;
  }
  if (editorInFullScreen()) return;
  dojo.byId("saveButton").blur();
  submitForm("../tool/saveObject.php","resultDiv", "objectForm", true);
}

to

function saveObject() {
  if (waitingForReply)  {
    showInfo(i18n("alertOngoingQuery"));
    return true;
  }
  if (editorInFullScreen()) return;
  for(name in CKEDITOR.instances) { // Necessary to update CKEditor field whith focus, otherwise changes are not detected
    CKEDITOR.instances[name].updateElement();
  }
  dojo.byId("saveButton").blur();
  submitForm("../tool/saveObject.php","resultDiv", "objectForm", true);
}

 
Posté : 12 Jan AM 11:011
(@pipobru)
Posts: 180
Active Member
 

For me it work fine ! Big thanks !


 
Posté : 12 Jan AM 11:011
(@swyngy)
Posts: 32
Active Member
Début du sujet
 

me too
no more pb

thks


 
Posté : 12 Jan PM 12:011
Share:
Retour en haut