diff options
Diffstat (limited to 'WebCore/editing/InsertIntoTextNodeCommand.cpp')
-rw-r--r-- | WebCore/editing/InsertIntoTextNodeCommand.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WebCore/editing/InsertIntoTextNodeCommand.cpp b/WebCore/editing/InsertIntoTextNodeCommand.cpp index 4905fae..9c3423a 100644 --- a/WebCore/editing/InsertIntoTextNodeCommand.cpp +++ b/WebCore/editing/InsertIntoTextNodeCommand.cpp @@ -43,12 +43,18 @@ InsertIntoTextNodeCommand::InsertIntoTextNodeCommand(PassRefPtr<Text> node, unsi void InsertIntoTextNodeCommand::doApply() { + if (!m_node->isContentEditable()) + return; + ExceptionCode ec; m_node->insertData(m_offset, m_text, ec); } void InsertIntoTextNodeCommand::doUnapply() { + if (!m_node->isContentEditable()) + return; + ExceptionCode ec; m_node->deleteData(m_offset, m_text.length(), ec); } |