Bug 225203
| Summary: | Web Inspector: should be able to type new line in Text node | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | inspector-bugzilla-changes, joepeck, pangle, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Sam Sneddon [:gsnedders]
When editing a Text node in the DOM, under the Elements tab, it should be possible to add a new line character to the Text node. I would expect Shift+Enter would do this.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/77336609>
Joseph Pecoraro
Looks like:
```
_startEditingTextNode(textNode)
{
if (WI.isBeingEdited(textNode))
return true;
var config = new WI.EditingConfig(this._textNodeEditingCommitted.bind(this), this._editingCancelled.bind(this));
config.spellcheck = true;
this._editing = WI.startEditing(textNode, config);
window.getSelection().setBaseAndExtent(textNode, 0, textNode, 1);
return true;
}
```
Maybe this just needs `config.multiline = true`.