Question

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

Was it helpful?

Solution

Have you tried convertLinks like this :

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

documentation

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top