PDA

View Full Version : [OPEN] Ext.form.field.HtmlEditor - text align problem (Ext. 4.2.2, Ext 5.0.1)



tomgal
23 Apr 2015, 6:14 AM
Hello everyone,


I have problem with Ext.form.field.HtmlEditor and text alignment.
I have Ext.form.field.HtmlEditor in form where user can change text alignment (left, right, center) . After text edition the result is stored in the database.


My problem is when user changed text alignment in chrome first , and after that on the same data wants to choose other text alignment on firefox. Text formatting won't working.


I noticed that chrome wrap my text in div with
text-align: 'left|right|center' style and firefox add attribute
aling="center". In this situations text-align is stronger than div align and on firefox formatting result is not visible.

Gary Schlosberg
23 Apr 2015, 7:17 AM
Thanks for the report. Can you please post a test case which reproduces the behavior you are seeing?
https://fiddle.sencha.com/#home

tomgal
24 Apr 2015, 12:37 AM
Thanks for the report. Can you please post a test case which reproduces the behavior you are seeing?
https://fiddle.sencha.com/#home

Yes, below link to example on sencha fiddle. Please test second html editor on firefox (has predefined value formatted on chrome browser)

https://fiddle.sencha.com/fiddle/lrc/preview

Gary Schlosberg
24 Apr 2015, 3:58 PM
So does the issue occur when you save a centered value in Chrome and then view/edit it in Firefox?

tomgal
27 Apr 2015, 1:00 AM
So does the issue occur when you save a centered value in Chrome and then view/edit it in Firefox?

Exactly

Gary Schlosberg
27 Apr 2015, 3:37 PM
Thanks for the report! I have opened a bug in our bug tracker.