Fix for the text Align* buttons not working ok in email application.
authorLukasz Krok <l.krok@samsung.com>
Tue, 24 Jun 2014 13:12:46 +0000 (15:12 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
It is possible to make the text align buttons all to be clicked in the same time.

Issue: CBWEBVIEW-877
Change-Id: I7428213c1475d8a3ed166ed599dab96d5695292a

tizen_src/impl/eweb_view.cc

index 3048a83..c69986b 100755 (executable)
@@ -593,8 +593,15 @@ void EWebView::ExecuteEditCommand(const char* command, const char* value) {
 
   rvhi->ExecuteEditCommand(command, value);
 
-  if(!strcmp(command, "InsertOrderedList") || !strcmp(command, "InsertUnorderedList"))
+  // This is workaround for rich text toolbar buttons in email application
+  if ( !strcmp(command, "InsertOrderedList")
+    || !strcmp(command, "InsertUnorderedList")
+    || !strcmp(command, "AlignCenter")
+    || !strcmp(command, "AlignJustified")
+    || !strcmp(command, "AlignLeft")
+    || !strcmp(command, "AlignRight") ) {
     QuerySelectionStyle();
+  }
 }
 
 void EWebView::SendOrientationChangeEventIfNeeded(int orientation) {