React-draft-wysiwyg: Indent and outdent not working

Created on 15 Sep 2017  路  10Comments  路  Source: jpuri/react-draft-wysiwyg

Hi

In Editor, Indent and Outdent is not working.

Actual Result:
-- Clicking on Indent icon and outdent icon has no effect on content of the Editor.

Expected Result:
--Indent icon and outdent icon should work as expected.

Most helpful comment

Latest version of editor [email protected] has the fix to enable indent / outdent only when it can work. Check here.

I will work in task of text indenting also later.

All 10 comments

Hey @gopinath-sixt , indent and outdent options atm work only on lists. I will soon make fix to disable these if current selection is not a list.

Hi @jpuri , I tried to use the indent and outdent in the list also, it is not working :(

Latest version of editor [email protected] has the fix to enable indent / outdent only when it can work. Check here.

I will work in task of text indenting also later.

@jpuri Thank a lot for your best support. it's working for list 馃憤

Thanks for reporting the issue @gopinath-sixt , I have created another task to take case of test indentation: https://github.com/jpuri/react-draft-wysiwyg/issues/474

@jpuri why indent and outdent options atm work only on lists? went we edit in Microsoft word or Notepad, we can use indent and outdent in anywhere. Why don't we do that?

@belief-cyf #474 is about that only

I still see the indent/outdent is disabled in demo page - https://jpuri.github.io/react-draft-wysiwyg/#/

How should i add support in my application?
Thank you

Indent and outdent atm works for lists only.

If you want a feature that would work in all blocks you need to add a custom option for that.

Yes it works on the list. But i would not expect our client to know this detail. I can try it out as the custom option. Thank you

Was this page helpful?
0 / 5 - 0 ratings