Topic: CKeditor: can'y paste text
Why, using CKeditor, I can't paste a text copied from Microsoft Word? How to fix it?
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → CKeditor: can'y paste text
Why, using CKeditor, I can't paste a text copied from Microsoft Word? How to fix it?
There is a 'paste from word button'. Are you using this?
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?
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
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
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?
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.
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???
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.
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?
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.
well, done Damoor!! It works fine... THANX. Anyway, I hope Support_Team informed us about this bug...
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.)
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.
Hi,
In CKEditor, how to replace the balise <em> to <i> because <em> is not ok on the browser... no difference
Thanks you
OK i found it in file js...
I have the same problem but only with Internet Explorer. Firefox and Chrome work fine.
CutePHP Forums → Problem Solving / Help & Support → CKeditor: can'y paste text
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.