views:

34

answers:

1

Is it possible to keep the styles whilst editing, kind of like a rich text editor? It currently changes to a plaintext editor but it would be nice if you could just press an edit button and it allows you to (truly) edit in-line

A: 

It is possible by styling elements via css properties like

.editable form,
.editable input {
    margin: inherit;
    padding: inherit;
    font: inherit;
    color: inherit;
    background: inherit;
    border: inherit
}

where editable class is a selector for Jeditable

volvox