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

javascript - How to echo the entire html in ueditor

WBOY
Release: 2016-08-04 09:21:57
Original
1552 people have browsed it

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>
Copy after login
Copy after login

An error will be prompted through the above method

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

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>
Copy after login
Copy after login

An error will be prompted through the above method

<code>ueditor.all.min.js:11 Uncaught TypeError: Cannot read property 'getRange' of undefined</code>
Copy after login
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template