зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1155465 - part1: layout-view: use content-type CSS_VALUE for editors;r=miker
Inplace editors for the layout view should use the CSS_VALUE content-type since they allow to edit a CSS value, and not just plain text. MozReview-Commit-ID: 9mQA1fSmXvD --HG-- extra : rebase_source : 952e83cc28a4a218f7b88f7bd7bb3b132aa1bc37
This commit is contained in:
Родитель
e1cd899f00
Коммит
7bc5a05fcc
|
@ -306,7 +306,10 @@ LayoutView.prototype = {
|
|||
let editor = new InplaceEditor({
|
||||
element: element,
|
||||
initial: initialValue,
|
||||
|
||||
contentType: InplaceEditor.CONTENT_TYPES.CSS_VALUE,
|
||||
property: {
|
||||
name: dimension.property
|
||||
},
|
||||
start: self => {
|
||||
self.elt.parentNode.classList.add("layout-editing");
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче