Home >Backend Development >PHP Tutorial >javascript - How to echo the entire html in ueditor

javascript - How to echo the entire html in ueditor

WBOY
WBOYOriginal
2016-08-04 09:21:571556browse

Because the entire html edited by ueditor needs to be saved to the database, the app needs to display it.
But this way ueditor cannot echo.

<code> UE.getEditor('editor').execCommand('insertHtml', value);
 </code>

An error will be prompted through the above method

<code>ueditor.all.min.js:11 Uncaught TypeError: Cannot read property 'getRange' of undefined</code>

Reply content:

Because the entire html edited by ueditor needs to be saved to the database, the app needs to display it.
But this way ueditor cannot echo.

<code> UE.getEditor('editor').execCommand('insertHtml', value);
 </code>

An error will be prompted through the above method

<code>ueditor.all.min.js:11 Uncaught TypeError: Cannot read property 'getRange' of undefined</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn