I am using redactor-rails as a editor. I want it to customize that it will allow only hyperlinks and plain text.

If I am copy any html content and paste in editor then all formatting should be convert into plain text but links in copied text should be inserted.

I have tried following:

$('.company_redactor').redactor(
    { pastePlainText: true }
 );

But what can I do for links with plain text.

Thanks

有帮助吗?

解决方案

Have you tried convertLinks like this :

$('#redactor').redactor({ pastePlainText: true, convertLinks: false });

documentation

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top