Summary | Use ckeditor preferences on signatures too |
Queue | IMP |
Queue Version | Git master |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | rui.carneiro (at) portugalmail (dot) net |
Created | 11/05/2010 (5353 days ago) |
Due | |
Updated | 01/19/2011 (5278 days ago) |
Assigned | |
Resolved | 11/09/2010 (5349 days ago) |
Milestone | |
Patch | No |
configuration array which is stored in the page in a javascript
variable. Fixed.
files - this is done by IMP_Ui_Editor::..
https://github.com/horde/horde/blob/master/imp/js/compose-dimp.js#L438
toggled within the page. All other uses of HTML editor should be
initialized automatically by calling Horde_Editor_Ckeditor.
configuration array which is stored in the page in a javascript
variable. Fixed.
Bug #9369: Allow a javascript variable name to be used for ckeditor confighttp://git.horde.org/horde-git/-/commit/4d8a00f6ca6b844df40e9805cd1bbe383d183676
New Attachment: Screenshot.png
(prefs.php.dists) and is not working. In order to avoid any
communication problem here I just uploaded a screenshot of the problem
:)
files - this is done by IMP_Ui_Editor::..
https://github.com/horde/horde/blob/master/imp/js/compose-dimp.js#L438
<!--a75c305b1c0a6022--><script type="text/javascript"
src="/horde/imp/js/signaturehtml.js"></script>
<!--a75c305b1c0a6022--><script type="text/javascript">//<![CDATA[
Event.observe(window, "load", function()
{CKEDITOR.replace("signature_html",{"scayt_autoStartup":false});});window.IMP =
[...]
you have is {"scayt_autoStartup":false}. All other configurations
(toolbar buttons, font-size, font-family, etc) are being ignored.
There is two aways to fix this:
- As compose-dimp.js, initialize IMP_Ui_Editor without an ID and do
CKEditor.replace on signaturehtml.js.
- Fix IMP_Ui_Editor::init and use
"$injector->getInstance('Horde_Editor')->initialize" to send the
correct config to all Horde_Editor instances.
Submitted patch to solve the issue
We should NEVER be manually entering CKEDITOR.replace() calls in .js
files - this is done by IMP_Ui_Editor::. Sure enough, it appears in
the page output:
<!--a75c305b1c0a6022--><script type="text/javascript"
src="/horde/imp/js/signaturehtml.js"></script>
<!--a75c305b1c0a6022--><script type="text/javascript">//<![CDATA[
Event.observe(window, "load", function()
{CKEDITOR.replace("signature_html",{"scayt_autoStartup":false});});window.IMP
= [...]
New Attachment: 0001-Use-prefs-values-for-ckeditor-on-html-signature.patch
Submitted patch to solve the issue
Assigned to Michael Slusarz
Request #9369: Use IMP HTML editor configuration for all Horde_Editorinstances
create mode 100644 imp/lib/Ui/Editor.php
http://git.horde.org/diff.php/imp/compose.php?rt=horde-git&r1=82bccce8fadb4691aafcf803bee94164da573408&r2=5907d00d695bffc7821333168c33b463821c3b8d
http://git.horde.org/diff.php/imp/lib/Prefs/Ui.php?rt=horde-git&r1=4f599be8fe37e6ac0926dd003b7d12dffea44074&r2=5907d00d695bffc7821333168c33b463821c3b8d
http://git.horde.org/diff.php/imp/lib/Ui/Compose.php?rt=horde-git&r1=8a48c691e1aca573ea14cea1dfe16c92ed128e59&r2=5907d00d695bffc7821333168c33b463821c3b8d
http://git.horde.org/co.php/imp/lib/Ui/Editor.php?rt=horde-git&r=5907d00d695bffc7821333168c33b463821c3b8d
http://git.horde.org/diff.php/imp/lib/Views/Compose.php?rt=horde-git&r1=8a48c691e1aca573ea14cea1dfe16c92ed128e59&r2=5907d00d695bffc7821333168c33b463821c3b8d
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Use ckeditor preferences on signatures too
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ New
https://github.com/horde/horde/blob/master/framework/Editor/lib/Horde/Editor/Ckeditor.php#L30
https://github.com/horde/horde/blob/master/imp/lib/Ui/Compose.php#L155