Skip to main content
  Wednesday, September 19 2018
  5 Replies
  4.6K Visits
  Subscribe
Hi, I would much appreciate a possibility to set the default "paste" settings as plain text.

Users of my webpage keep inserting text from MS Word and they find it too complicated to use "remove format" button or "paste text" button. They just want to go ctrl+v.

I believe many users would appreciate this option and tinymce, arkeditor or jce editor do offer this.
A
5 years ago
Hi,

Thanks for contacting us here about this extension.
I would much appreciate a possibility to set the default "paste" settings as plain text.

This feature is not implemented yet. You can config to set it as default at line 552 :
administrator\components\com_dropeditor\helpers\ckeditorHelper.php
add this code:

$config .= "config.forcePasteAsPlainText = true;". "\n";

Then save the file and you can use it as default.

Hope it helps!
Cheers,
M
5 years ago
Hi, thank you very much!

I've added this line to the ckeditorHelper.php and cleared my cache, but it did not make any change. Then I tried also to change the lines 550 and 551 to true, which seemed logical, but still no change. This is how my lines 543-555 look now, is there something wrong?


$config .= "];". "\n";
$config .= "config.removeButtons = 'About,Anchor';". "\n";
$config .= "config.format_tags = 'p;h1;h2;h3;pre';". "\n";
$config .= "config.removeDialogTabs = 'image:advanced;link:advanced'". "\n";;
$config .= "config.allowedContent = true;". "\n";
$config .= "config.entities = false;". "\n";
$config .= "config.skin = 'material';". "\n";
$config .= "config.pasteFromWordRemoveStyles = true;". "\n";
$config .= "config.pasteFromWordRemoveFontStyles = true;". "\n";
$config .= "config.forcePasteAsPlainText = true;". "\n";
$config .= "};" . "\n";
$config .= 'CKEDITOR.dtd.$removeEmpty["i"] = false;' . "\n";
$config .= 'CKEDITOR.dtd.$removeEmpty["span"] = false;';


Thank you very much again :-)

B.
A
5 years ago
Hi,

Thanks for getting back to me with more information.
You should go to DropEditor > Profiles and Save the config.
If it still remains, please clear your browser cache.

Cheers,
M
5 years ago
I am so so sorry, I can't see anything new in Profiles, and there are no new options in settings (cache cleared). Could you please guide me step by step like a child? :-) Thank you
A
5 years ago
Hi,

Thanks for your response.
I am so so sorry, I can't see anything new in Profiles, and there are no new options in settings (cache cleared). Could you please guide me step by step like a child?

It could be something wrong at your site. Please drop us a ticket (menu Support > Ticket support).
Our developer in charge will take a look at that.

Cheers,
  • Page :
  • 1
There are no replies made for this post yet.