Support align attribute for paragraph tag in markup 42/270442/10
authorssabah <s.sabah@samsung.com>
Wed, 2 Feb 2022 22:39:30 +0000 (00:39 +0200)
committerssabah <s.sabah@samsung.com>
Wed, 23 Feb 2022 10:23:59 +0000 (12:23 +0200)
<p align='center'> text </p>
Values: begin | center | end

//How to apply it:
textEditorMultiAlign.SetProperty(TextEditor::Property::TEXT, "text outside<p align='end'>Paragraph end</p><p align='center'>Paragraph center</p><p align='begin' >Paragraph begin</p><p>Paragraph property alignment</p>");
textEditorMultiAlign.SetProperty(TextEditor ::Property::ENABLE_MARKUP, true);
//The alignment on property level works on outside text or on a paragraph without the align attribute
textEditorMultiAlign.SetProperty(TextEditor::Property::HORIZONTAL_ALIGNMENT, Dali::Toolkit::Text::HorizontalAlignment::CENTER);

Change-Id: I3ccd6e6669a5887cdcbfa80be44998fd487e580c


No differences found