Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] CK Editor
 
Notifications
Clear all

[SOLVED] CK Editor

9 Posts
3 Users
0 Reactions
8,828 Views
(@swyngy)
Posts: 32
Active Member
Topic starter
 
[#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.


 
Posted : 11 Jan 2016 16H04
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 11 Jan 2016 16H58
(@swyngy)
Posts: 32
Active Member
Topic starter
 

Is it systematic ?

yes

Which browser/version are you using ?

IE11 and Chrome 47

Do you have any error in the browser console ?

Nothing


 
Posted : 11 Jan 2016 17H35
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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

Is description correctly saved ?


 
Posted : 11 Jan 2016 17H42
(@swyngy)
Posts: 32
Active Member
Topic starter
 

yes 😉


 
Posted : 11 Jan 2016 18H04
(@pipobru)
Posts: 180
Active Member
 

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


 
Posted : 11 Jan 2016 18H36
babynus
(@babynus)
Posts: 14966
Main Contributor 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);
}

 
Posted : 12 Jan 2016 11H13
(@pipobru)
Posts: 180
Active Member
 

For me it work fine ! Big thanks !


 
Posted : 12 Jan 2016 11H26
(@swyngy)
Posts: 32
Active Member
Topic starter
 

me too
no more pb

thks


 
Posted : 12 Jan 2016 12H35
Share:

Scroll to Top