Commit 99c6a91177841485337c549fd48ea5594137e124

  • avatar
  • shalini
  • Sat Oct 22 13:56:47 IST 2011
Saving branch changes
  
1111 color:#fff;
1212}
1313
14#msg-overlay {
15 height:25px;
16 width:100%;
17 position:fixed;
18 top:0%;
19 left:0%;
20 background-color:rgba(0, 0, 0, 0.4);
21 display:block;
22 text-align:center;
23 font-size:20px;
24 color:#fff;
25}
26
27#close-msg {
14#close-button {
15 color:#FFF;
16 background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%);
17 border: 1px solid #777;
18 border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px;
2819 height:20px;
2920 margin-right:1px;
30 -moz-border-radius:5px;
31 -webkit-border-radius:5px;
32 border:1px solid #2f6270;
3321 text-align:center;
3422 width:50px;
3523 font-size:14px;
5454}
5555
5656#menu-button {
57 border-radius:2px;
58 -moz-border-radius:2px;
59 -webkit-border-radius:2px;
60 border:5px solid #2f6270;
57 color:#FFF;
58 background: #222;
59 border:3px solid;
60 border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px;
6161 text-align:center;
6262 font-size:14px;
6363 float:left;
6868}
6969
7070#edit-button {
71 -moz-border-radius:5px;
72 -webkit-border-radius:5px;
73 border:1px solid #2f6270;
71 color:#FFF;
72 background: -moz-linear-gradient(center bottom, #000 0%, #FFF 100%); -webkit-linear-gradient(center bottom, #000 0%, #FFF 100%);
73 border: 1px solid #777;
74 border-radius: 3px; -moz-border-radius:10px; -webkit-border-radius:3px;
7475 text-align:center;
7576 margin-top:10px;
7677 margin-left:20px;
8080 font-size:20px;
8181 font-weight:bold;
8282 color:#fff;
83 background-color:#2f6270;
84}
85
86#close-button {
87 -moz-border-radius:5px;
88 -webkit-border-radius:5px;
89 border:1px solid #2f6270;
90 text-align:center;
91 margin-top:10px;
92 margin-left:20px;
93 width:100px;
94 height:30px;
95 font-size:20px;
96 font-weight:bold;
97 color:#fff;
98 background-color:#2f6270;
9983}
  
66 flag : 0,
77 testContext : function()
88 {
9 $(document).ready(function(){$('body *').contents().filter(function() {return (this.nodeType == 3) && this.nodeValue.match(/\S/);}).wrap('<span m4pageedittype=text/>')});
9 $(document).ready(function(){$('body *').contents().filter(function() {return (this.nodeType == 3) && this.nodeValue.match(/\S/);}).wrap('<span m4pageedittype="text" oncopy="" onpaste=""/>')});
1010 vimg = document.getElementsByTagName('img');
1111 for(i=0; i<vimg.length; i++)
1212 {
1919 v[0].appendChild(a);
2020 var alltags = document.getElementsByTagName('*');
2121 for (x=0; x<alltags.length; x++) {
22 if(alltags[x].getAttribute("_moz_dirty")){
23 alert("hello _moz_dirty");
24 }
2225 if (alltags[x].id == 'ren_overlay' || alltags[x].id == 'overlay1' ) {
2326 v[0].removeChild(document.getElementById('ren_overlay'));
2427 v[0].removeChild(document.getElementById('overlay1'));
2929 }
3030 v[0].removeChild(document.getElementById('overlay2'));
3131
32 msg_overlay = document.createElement("div");
33 v[0].appendChild(msg_overlay);
34 msg_overlay.setAttribute("id", "msg-overlay");
35 msg_overlay.textContent = "Now your page is ready to edit... Enjoy editing !!";
36
37 setTimeout("document.getElementById('msg-overlay').style.display='none'", 3000);
3832 },
3933
4034
189189 dump( 'error: Document tree modified during iteration ' + e );
190190 }
191191 },
192 close_msg: function() {
192 close: function() {
193193 // var v = content.document.getElementsByTagName("body");
194194 // v[0].removeChild(document.getElementById('ren_overlay'));
195195 document.getElementById('ren_overlay').style.display = 'none';
  
14731473
14741474 // Ajay - injecting edit-control to tag elements
14751475 editAttributes = new DOM.Attributes({ 'm4pageeditcontrol': true });
1476 //editAttributes.designMode = 'on';
1477 //editAttributes.html="0";
14761478 elementAttributes = editAttributes.addStyle('margin:0; padding:0; border:none; text-indent: 0px; background: none;');
14771479 fontTypeAttributes = elementAttributes.addStyle("font-family: Helvetica Neue, Helvetica, Arial, Sans-serif;");
14781480 normalFontAttributes = fontTypeAttributes.addStyle("font-weight:bold; font-size:12px; line-height: 10px;");