Frage

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

War es hilfreich?

Lösung

Have you tried convertLinks like this :

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

documentation

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top