Topic: CKeditor: can'y paste text

Why, using CKeditor, I can't paste a text copied from Microsoft Word? How to fix it?

Re: CKeditor: can'y paste text

There is a 'paste from word button'. Are you using this?

Re: CKeditor: can'y paste text

There is a 'paste from word button'. Are you using this?

I can't see a 'paste from word button'. There is just a 'paste as plain text'. Using CKeditor version I downloaded and assigned in CN 1.4, I could paste directly a text from Microsoft Word.. Can I do so in this new CKeditor version?

4 (edited by 2013-03-19 11:39:43)

Re: CKeditor: can'y paste text

You need to add this in yourself.
The control panel has an option to add/delete buttons in Ckeditor with a link to those that are available.
http://docs.cksource.com/CKEditor_3.x/Deve...s_Guide/Toolbar
You need the one:
'PasteFromWord'
The addon in is here:
http://ckeditor.com/addon/pastefromword

5 (edited by 2013-03-19 11:54:12)

Re: CKeditor: can'y paste text

The control panel option to add/delete buttons in Ckeditor does not work for me.
You can add the button directly into ckeditor.options.tpl
i have not tried this addon so i do not know if it works

Re: CKeditor: can'y paste text

The control panel option to add/delete buttons in Ckeditor does not work for me.
You can add the button directly into ckeditor.options.tpl
i have not tried this addon so i do not know if it works


Where I have to insert the plugin I downloaded?

Re: CKeditor: can'y paste text

In the CKeditor plugins directory.
You then need to add into the addnews and editnews index_cke.tpl the code
extraPlugins: 'pastefromword',

I have not tested this so good luck.

8 (edited by 2013-03-19 22:52:12)

Re: CKeditor: can'y paste text

In the CKeditor plugins directory.
You then need to add into the addnews and editnews index_cke.tpl the code
extraPlugins: 'pastefromword',

I have not tested this so good luck.

It's so hard for me...
Support_Team, could you add 'Paste Text From Word' in Cute News, please???

9 (edited by 2013-03-20 10:30:30)

Re: CKeditor: can'y paste text

It's so hard for me...
Support_Team, could you add 'Paste Text From Word' in Cute News, please???

I have now tested the plugin and it works.
I have done this by adding the plugin into ckeditor/plugins
Then:
extraPlugins: 'pastefromword'
and
toolbar: ['PasteFromWord'],
directly into index_cke.tpl.
You can then paste text from word using ctrl+V and the formatting is retained.
System Configurations > Customize Ckeditor does not seem to work.
The variable $config_ckeditor_customize seems to be used to allow changes to be inserted into index_cke.tpl from the System Configurations.
Support_Team need to explain how to use this function.

Re: CKeditor: can'y paste text

I have now tested the plugin and it works.
I have done this by adding the plugin into ckeditor/plugins
Then:
extraPlugins: 'pastefromword'
and
toolbar: ['PasteFromWord'],
directly into index_cke.tpl.
You can then paste text from word using ctrl+V and the formatting is retained.
System Configurations > Customize Ckeditor does not seem to work.
The variable $config_ckeditor_customize seems to be used to allow changes to be inserted into index_cke.tpl from the System Configurations.
Support_Team need to explain how to use this function.

Damor, could you explain me in what line I have to add, in index_cke.tpl, this two codes:

extraPlugins: 'pastefromword'


toolbar: ['PasteFromWord']


please?

11 (edited by 2013-03-20 11:43:08)

Re: CKeditor: can'y paste text

I cannot get the built in CKeditor configurations to work so I have just tested by changing the index_cke.tpl:

Open skins/baseskin/addnews/index_cke.tpl

Find:

entities_greek: false,


add underneath:

extraPlugins: 'pastefromword',

Find:

 toolbar: [ {$config_ckeditor_customize} ],

and put back all of your toolbar options.

toolbar: [
                  ['Source','Maximize','Scayt','PasteText','Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat','NumberedList','BulletedList','Outdent','Indent'],
                  ['Image','Table','HorizontalRule','Smiley'],
                  ['Link','Unlink','Anchor'],
                  ['Format','FontSize','TextColor','BGColor'],
                  ['Bold','Italic','Underline','Strike','Blockquote','PasteFromWord'],
                  ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
  
              ],

Do the same for the editnews index_cke.tpl

You should now be able to mark and copy text from a word file then press ctr+V in ckeditor.

This is not the best way to do this. Cutenews_support seem to have added an option to change this but they need to explain how the cutenews configurations for ckeditor works.

Re: CKeditor: can'y paste text

well, done Damoor!! It works fine... THANX. Anyway, I hope Support_Team informed us about this bug...

13 (edited by 2013-03-20 15:32:01)

Re: CKeditor: can'y paste text

Hi

I have read Damoors text and I got this messege:
"It was not possible to clean up the pasted data due to an internal error"

How do I get ride of this?

If all you want to do is paste word text without removing the formatting then this can be ignored.
I have not found out why this error is occurring. It is something to do with configuring ckeditor to filter out word formatting.
(A quick google has revealed that it is a bug in ckeditor that was patched in later versions.)

Re: CKeditor: can'y paste text

The version 3.6.6.1 of ckeditor here:
http://ckeditor.com/download

handles the paste from word by correctly opening a text paste box.
Replace the version in core/ckeditor with this version.

You do not need to copy across pastefromword. It is already there.
Copy across any other plugins that you have installed and are not already there.
The "It was not possible to clean up the pasted data due to an internal error" still remains.

15 (edited by 2013-03-27 12:06:24)

Re: CKeditor: can'y paste text

Hi,

In CKEditor, how to replace the balise <em> to <i> because <em> is not ok on the browser... no difference

Thanks you

Re: CKeditor: can'y paste text

OK i found it in file js...

Re: CKeditor: can'y paste text

I have the same problem but only with Internet Explorer. Firefox and Chrome work fine.