问题描述:

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

网友答案:

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

网友答案:

NOTE: JEditable uses <button /> node instead of <input type="button" />, so for styling buttons via CSS you need:

.editable button
{
  /** style goes here **/
}
相关阅读:
Top