Ticket #6628 (closed Bug: fixed)
Setting config.enterMode from PHP fails
| Reported by: | Webunity | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.5.1 |
| Component: | Server : PHP | Version: | 3.1 |
| Keywords: | HasPatch | Cc: | gilles@…, d.czepierga@… |
Description
Using this code fails;
[php] $this->configenterMode? = 'CKEDITOR.ENTER_BR'; $this->configshiftEnterMode? = 'CKEDITOR.ENTER_P'; php
However, setting thesame in the config.js works. Tested with PHP5 class, but problem exists in PHP4 class also i think..
Attachments
Change History
comment:2 Changed 3 years ago by Webunity
Proposed FIX: In the function "private function jsEncode($val)"
Replace:
$val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val); return '"' . $val . '"';
With:
$val = str_replace($jsonReplaces[0], $jsonReplaces[1], $val); if (strtoupper(substr($val, 0, 9)) == 'CKEDITOR.') return $val; return '"' . $val . '"';
comment:4 Changed 3 years ago by fredck
- Status changed from new to confirmed
- Keywords HasPatch added
- Milestone set to CKEditor 3.6
Interesting approach for it.
Note: See
TracTickets for help on using
tickets.

This should read