Hello. We are having an issue with our OTRS CKEditor configuration. During a "Paste From Word" operation, all of the colors are removed from the copied text. I understand from online research that there are some options (pasteFromWordRemoveFontStyles and pasteFromWordRemoveStyles) that need to be set to false for this to work. I have tried setting those options in the config.js file in /opt/otrs/var/httpd/htdocs/js/thirdparty/ckeditor-4.3 but it doesn't work.
Am I on the right track or am I missing something?
If I am on the right track, do I have to rebuild OTRS configuration or anything else for this to go into effect?
Thanks in advance for any input...Dan.
CKEditor losing color during Paste To Word function [SOLVED]
Moderator: crythias
-
- Znuny advanced
- Posts: 135
- Joined: 04 Jun 2013, 23:14
- Znuny Version: 3.3.3
- Real Name: Dan Stover
- Company: EMAC, Inc.
CKEditor losing color during Paste To Word function [SOLVED]
Last edited by dstover on 17 Nov 2014, 18:43, edited 1 time in total.
OTRS 3.3.3
Ubuntu 12.04
MySQL DB
Ubuntu 12.04
MySQL DB
-
- Moderator
- Posts: 10169
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: CKEditor losing color during Paste To Word function
Look in var/httpd/htdocs/js/Core.UI.RichTextEditor.js
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny advanced
- Posts: 135
- Joined: 04 Jun 2013, 23:14
- Znuny Version: 3.3.3
- Real Name: Dan Stover
- Company: EMAC, Inc.
Re: CKEditor losing color during Paste To Word function
Thanks very much. I added my options into that file and everything worked.
I appreciate it. Have a nice day...Dan.
I appreciate it. Have a nice day...Dan.
OTRS 3.3.3
Ubuntu 12.04
MySQL DB
Ubuntu 12.04
MySQL DB
-
- Znuny newbie
- Posts: 37
- Joined: 31 Jan 2011, 11:25
- Znuny Version: 3.2.3
- Real Name: Dan
- Company: ANB
- Location: Bucharest, RO
Re: CKEditor losing color during Paste To Word function
Can you please tell me where should I insert these two rows in Core.UI.RichTextEditor.js?
config.pasteFromWordRemoveFontStyles = false;
config.pasteFromWordRemoveStyles = false;
Thank you!
config.pasteFromWordRemoveFontStyles = false;
config.pasteFromWordRemoveStyles = false;
Thank you!
-
- Znuny advanced
- Posts: 135
- Joined: 04 Jun 2013, 23:14
- Znuny Version: 3.3.3
- Real Name: Dan Stover
- Company: EMAC, Inc.
Re: CKEditor losing color during Paste To Word function
See bolded and underlined text below:
Editor = CKEDITOR.replace(EditorID,
{
customConfig: '', // avoid loading external config files
defaultLanguage: UserLanguage,
language: UserLanguage,
width: Core.Config.Get('RichText.Width', 620),
resize_minWidth: Core.Config.Get('RichText.Width', 620),
height: Core.Config.Get('RichText.Height', 320),
removePlugins : 'elementspath,scayt,menubutton',
pasteFromWordRemoveFontStyles: false,
pasteFromWordRemoveStyles: false,
forcePasteAsPlainText: false,
format_tags: 'p;h1;h2;h3;h4;h5;h6;pre',
fontSize_sizes: '8px;10px;12px;16px;18px;20px;22px;24px;26px;28px;30px;',
extraAllowedContent: 'div table tr td th colgroup col style[*]{*}',
enterMode: CKEDITOR.ENTER_BR,
shiftEnterMode: CKEDITOR.ENTER_BR,
contentsLangDirection: Core.Config.Get('RichText.TextDir', 'ltr'),
disableNativeSpellChecker: false,
toolbar: CheckFormID().length ? Core.Config.Get('RichText.Toolbar') : Core.Config.Get('RichText.ToolbarWithoutImage'),
filebrowserUploadUrl: Core.Config.Get('Baselink'),
extraPlugins: Core.Config.Get('RichText.SpellChecker') ? 'aspell,onchange' : 'onchange',
entities: false
});
Have a nice day...Dan.
Editor = CKEDITOR.replace(EditorID,
{
customConfig: '', // avoid loading external config files
defaultLanguage: UserLanguage,
language: UserLanguage,
width: Core.Config.Get('RichText.Width', 620),
resize_minWidth: Core.Config.Get('RichText.Width', 620),
height: Core.Config.Get('RichText.Height', 320),
removePlugins : 'elementspath,scayt,menubutton',
pasteFromWordRemoveFontStyles: false,
pasteFromWordRemoveStyles: false,
forcePasteAsPlainText: false,
format_tags: 'p;h1;h2;h3;h4;h5;h6;pre',
fontSize_sizes: '8px;10px;12px;16px;18px;20px;22px;24px;26px;28px;30px;',
extraAllowedContent: 'div table tr td th colgroup col style[*]{*}',
enterMode: CKEDITOR.ENTER_BR,
shiftEnterMode: CKEDITOR.ENTER_BR,
contentsLangDirection: Core.Config.Get('RichText.TextDir', 'ltr'),
disableNativeSpellChecker: false,
toolbar: CheckFormID().length ? Core.Config.Get('RichText.Toolbar') : Core.Config.Get('RichText.ToolbarWithoutImage'),
filebrowserUploadUrl: Core.Config.Get('Baselink'),
extraPlugins: Core.Config.Get('RichText.SpellChecker') ? 'aspell,onchange' : 'onchange',
entities: false
});
Have a nice day...Dan.
OTRS 3.3.3
Ubuntu 12.04
MySQL DB
Ubuntu 12.04
MySQL DB
Re: CKEditor losing color during Paste To Word function [SOLVED]
Is there any config to paste tables from word?
Now, I put table in dialog form, click OK and table lose his style (border and colors).
Now, I put table in dialog form, click OK and table lose his style (border and colors).
-
- Znuny newbie
- Posts: 68
- Joined: 30 Aug 2011, 13:14
- Znuny Version: 5.0.22
- Real Name: Sunny
- Contact:
Re: CKEditor losing color during Paste To Word function [SOLVED]
same here, still not working but I tried in CKeditor ver 5.4.6 in OTRS 5.0.22
-
- Znuny newbie
- Posts: 9
- Joined: 14 Dec 2015, 12:15
- Znuny Version: 5.0.14
- Real Name: Lai Van Do
- Company: NetNam
- Contact:
Re: CKEditor losing color during Paste To Word function [SOLVED]
Hi all,
Any idea to fix this issue. It's not working with 5.0.34
Any idea to fix this issue. It's not working with 5.0.34
Re: CKEditor losing color during Paste To Word function [SOLVED]
Hi,
use latest patch level and enable rich text editor enhanced mode. Should work
Flo
use latest patch level and enable rich text editor enhanced mode. Should work
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.