equotetext.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. (function() {
  2. CKEDITOR.dialog.add("equotetext",
  3. function(ecmseditorv) {
  4. return {
  5. title: "插入引用",
  6. minWidth: "180",
  7. minHeight:"110",
  8. contents: [{
  9. id: "eqtinfo1",
  10. label: "常规",
  11. title: "常规",
  12. expand: true,
  13. width: "180px",
  14. height: "110px",
  15. padding: 0,
  16. elements: [
  17. {id:"eqtbgcolor",type:"text",label:"<strong>背景颜色:</strong>",style:"width: 100%","default":"#DDEDFB"},
  18. {id:"eqtbordercolor",type:"text",label:"<strong>边框颜色:</strong>",style:"width: 100%","default":"#0099CC"}
  19. ]
  20. }
  21. ],
  22. onOk: function() {
  23. var ebgcolor='';
  24. var ebordercolor='';
  25. var ecodetext=" ";
  26. var ehtmlstr='';
  27. ebgcolor=this.getValueOf('eqtinfo1','eqtbgcolor');
  28. ebordercolor=this.getValueOf('eqtinfo1','eqtbordercolor');
  29. ehtmlstr='<table border="0" width="100%" cellspacing="1" cellpadding="10" bgcolor="'+ebordercolor+'"><tr><td width="100%" bgcolor="'+ebgcolor+'" style="word-break:break-all;line-height:18px">'+ecodetext+'</td></tr></table>';
  30. //点击确定按钮后的操作
  31. ecmseditorv.insertHtml(ehtmlstr);
  32. }
  33. }
  34. })
  35. })();