Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit 9e19f03

Browse files
author
Sérgio Estêvão
authored
Merge pull request #834 from wordpress-mobile/issue/improve_media_attributes_handling
Makes align and size attributes to have effect on the visual editor.
2 parents 44cbcdd + 14038a7 commit 9e19f03

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

Assets/editor.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ hr {
6666
}
6767

6868
img {
69-
width: auto;
7069
height: auto;
7170
margin: 0px 0 0px 0;
7271
min-width: 30px;
@@ -75,6 +74,24 @@ img {
7574
opacity:1;
7675
}
7776

77+
img.alignright {
78+
display: inline;
79+
float: right;
80+
margin-left: 24px
81+
}
82+
83+
img.alignleft {
84+
display: inline;
85+
float: left;
86+
margin-right: 24px
87+
}
88+
89+
img.aligncenter {
90+
clear: both;
91+
display: block;
92+
margin: 0 auto
93+
}
94+
7895
video {
7996
width: auto;
8097
height: auto;

0 commit comments

Comments
 (0)