11 font:
13px/
1.555 "Trebuchet MS", sans-serif;
16 text-decoration: none;
17 border-bottom:
1px solid #
888;
24 .main-box p{margin:
0 0 14px;}
27 border-bottom-color: #f00000;
32 <div id=
"content" class=
"main-box"></div>
33 <iframe src=
"" frameborder=
"0" id=
"spelltext" name=
"spelltext" style=
"display:none; width: 100%" ></iframe>
34 <iframe src=
"" frameborder=
"0" id=
"loadsuggestfirst" name=
"loadsuggestfirst" style=
"display:none; width: 100%" ></iframe>
35 <iframe src=
"" frameborder=
"0" id=
"loadspellsuggestall" name=
"loadspellsuggestall" style=
"display:none; width: 100%" ></iframe>
36 <iframe src=
"" frameborder=
"0" id=
"loadOptionsForm" name=
"loadOptionsForm" style=
"display:none; width: 100%" ></iframe>
39 // Constructor Manager PostMessage
41 var ManagerPostMessage = function() {
42 var _init = function(handler) {
43 if (document.addEventListener) {
44 window.addEventListener('message', handler, false);
46 window.attachEvent(
"onmessage", handler);
49 var _sendCmd = function(o) {
51 type = Object.prototype.toString,
54 target = o.target || window,
55 message = o.message || { 'id': id };
57 if (type.call(o.message) ==
"[object Object]") {
58 (o.message['id']) ? o.message['id'] : o.message['id'] = id;
62 str = JSON.stringify(message, fn);
63 target.postMessage(str, '*');
72 var manageMessageTmp = new ManagerPostMessage;
75 var appString = (function(){
76 var spell = parent.CKEDITOR.config.wsc.DefaultParams.scriptPath;
77 var serverUrl = parent.CKEDITOR.config.wsc.DefaultParams.serviceHost;
78 return serverUrl + spell;
81 function loadScript(src, callback) {
82 var scriptTag = document.createElement(
"script");
83 scriptTag.type =
"text/javascript";
84 callback ? callback : callback = function() {};
85 if(scriptTag.readyState) {
87 scriptTag.onreadystatechange = function() {
88 if (scriptTag.readyState ==
"loaded" ||
89 scriptTag.readyState ==
"complete") {
90 scriptTag.onreadystatechange = null;
91 setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},
1)
97 scriptTag.onload = function() {
98 setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},
1);
103 document.getElementsByTagName(
"head")[
0].appendChild(scriptTag);
107 window.onload = function(){
108 loadScript(appString, function(){
109 manageMessageTmp.send({
110 'id': 'iframeOnload',
111 'target': window.parent