wymeditor

Wymeditor across subdomains. (Cross site permission issue.)

梦想的初衷 提交于 2019-12-10 09:26:00
问题 I have wymeditor on sub1.domain.com, which is accessed by a page on sub2.domains.com. This line gives an error: var styles = this._doc.styleSheets[0]; Permission denied for http://removed.example.com to get property HTMLDocument.styleSheets from http://removed2.example.com. I am assuming this is a cross site scripting restriction, but I would like to srve my media from a different domain. How can I do this? 回答1: Add the line document.domain = "domain.com"; in both pages, replacing domain.com

Wymeditor across subdomains. (Cross site permission issue.)

断了今生、忘了曾经 提交于 2019-12-05 16:24:59
I have wymeditor on sub1.domain.com, which is accessed by a page on sub2.domains.com. This line gives an error: var styles = this._doc.styleSheets[0]; Permission denied for http://removed.example.com to get property HTMLDocument.styleSheets from http://removed2.example.com . I am assuming this is a cross site scripting restriction, but I would like to srve my media from a different domain. How can I do this? Add the line document.domain = "domain.com"; in both pages, replacing domain.com with whatever your actual domain name is. 来源: https://stackoverflow.com/questions/2206586/wymeditor-across

wymeditor cannot save inserted iframe

旧街凉风 提交于 2019-12-01 01:44:34
问题 WymEditor (http://wymeditor.org) always deletes inserted iframe to its content. So i cannot add vimeo player block to my page. How can I avoid it? Regards, Alexey Zakharov 回答1: Since May 31, 2011, the WYMeditor Embed Plugin supports iframe embedding. To include this support, simply include the embed plugin script in your HTML. Eg. <script type="text/javascript" src="path/to/wymeditor/plugins/embed/jquery.wymeditor.embed.js"></script> 来源: https://stackoverflow.com/questions/3634616/wymeditor