HTML contenteditable with non-editable islands

后端 未结 6 1176
Happy的楠姐
Happy的楠姐 2020-12-01 04:37

I have sort of browser based WYSIWYG editor where users can edit documents-templates.

Document-template is an ordinary html with some special \"merge code placeholde

6条回答
  •  隐瞒了意图╮
    2020-12-01 05:04

    Here's a solution I'm using in a project :

    Editable text - Non editable text

    With the corresponding CSS to see the result :

    div {
      border: 1px solid black;
      display: inline-block;
      max-width: 200px;
    }
    

    Here's the result : http://www.cssdesk.com/rULJM

提交回复
热议问题