Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Revert ".getCurrentState() gets HTML using .html() instead of .rawHtm…
Browse files Browse the repository at this point in the history
…l()"

This reverts commit 0c05e86.
  • Loading branch information
mightyiam committed Dec 19, 2015
1 parent 0c05e86 commit 6a528f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/writing_plugins/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Returns an object with the current state of the editor.
The state includes:

``html``
The return value of ``editor.html()``.
The return value of ``editor.rawHtml()``.
``savedSelection``
A Rangy saved selection, if anything is selected.
The ``win`` and the ``doc`` properties are deleted,
Expand Down
4 changes: 2 additions & 2 deletions src/wymeditor/editor/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ WYMeditor.editor.prototype._encloseString = function (sVal) {
The state includes:
``html``
The return value of ``editor.html()``.
The return value of ``editor.rawHtml()``.
``savedSelection``
A Rangy saved selection, if anything is selected.
The ``win`` and the ``doc`` properties are deleted,
Expand Down Expand Up @@ -1397,7 +1397,7 @@ WYMeditor.editor.prototype.getCurrentState = function () {
state.savedSelection = rangy.saveSelection(wymIframeWindow);
}

state.html = wym.html();
state.html = wym.rawHtml();

if (state.savedSelection) {
// Selection was saved. This means that in the document, DOM elements,
Expand Down

0 comments on commit 6a528f2

Please sign in to comment.