문제

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