sstur / react-rte

Pure React rich text WYSIWYG editor based on draft-js.
https://react-rte.org
ISC License
2.86k stars 430 forks source link

Need to customize Link popup #392

Open umarjavedse opened 3 years ago

umarjavedse commented 3 years ago

Using RichTextEditor to convert content to markdown and vice versa. Open Link in new tab and No Follow are not working with markdown. So, I want to remove both check boxes from Link popup. image

Please let me know how can I manage that. Thanks in advance.

umarjavedse commented 3 years ago

@sstur can you or any other collaborator please share your thought on this issue.

umarjavedse commented 3 years ago

@sstur Created PR #395 for this issue

Hammad3912 commented 3 years ago

Yes am also stuck on this issue since 1 week please approve or resolve this as soon as possible Thanks

umarjavedse commented 3 years ago

I used this package two month back and log this issue. It's seems like support is not more looking into issues. PR is also pending, kindly look into this. Waiting for positive response. Thanks.

phronaeus commented 3 years ago

Hello Umar, did you ever end up resolving this issue? Since the PR hasn't been merged, how did you work around the problem?

umarjavedse commented 3 years ago

@phronaeus No this issue is still there.

iMinosGFX commented 3 years ago

I found a way a little complicated to remove the links, here is my trick:

Give a class to the toolbar toolbarClassName="editorToolbar"

Then in scss (can also be done in css) :

.editorToolbar{
  div[class*="ButtonGroup"]{
      &:nth-child(3){
        div[class*="InputPopover__root"]{
          div[class*="InputPopover__checkOption"]{
            display: none;
          }
        }
      }
    }
}

Modify the nth-child(3) according to the index where your ButtonGroup link is in the toolbar (depending on what you display or not in it, it can change)

Screenshot_4