Suneditor: Feature Request: Add option to use `<iframe>` to edit full page

Created on 5 Aug 2019  路  5Comments  路  Source: JiHong88/SunEditor

Currently, the editor inherits all CSS on the page where it is added. If shown in an "admin" area, it's possible some CSS will reach in to the editor causing undesired side-effects.

If you use an <iframe> for the editing area, you can get not only 1) better sandboxing, but also 2) full-page editing.

It would be cool to see this editor support full page editing, where it can accept a <!doctype html><html>...</html> value and preserve the entire structure.

All 5 comments

Hi @sirlancelot

Does this mean that the "iframe" should cover the all area of the editor?

In the implementation I've seen (CKEditor), the content under edit is in an iframe. All other UI/Editing elements surround the iframe.

Yup, I understand.
The old version was <iframe>.
I'll add an <iframe> mode to the option.
Thank you. 馃憤

Hi @sirlancelot

Updated in v2.19.1

Thank you : )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Saeeed-B picture Saeeed-B  路  7Comments

vuvansang07 picture vuvansang07  路  4Comments

BrianJVarley picture BrianJVarley  路  3Comments

mkhstar picture mkhstar  路  3Comments

guido-visser picture guido-visser  路  3Comments