ckeditor_message_node.js 779 B

123456789101112131415161718192021222324252627282930
  1. ckeditor = function(textareaid, ctx) {
  2. CKEDITOR.context = ctx;
  3. // 构造对像
  4. var editor = CKEDITOR.replace(
  5. textareaid,
  6. {
  7. skin : 'office2003',
  8. height : 160,
  9. toolbarCanCollapse : false,
  10. toolbarGroupCycling : true,
  11. extraPlugins : "subject,startUser,startDate,startTime,businessKey,vars,saveRule,readperson,sendperson,taskName,flowvars",
  12. toolbar : [
  13. {
  14. name : 'basicstyles',
  15. items : [ 'Source', 'Bold', 'Italic',
  16. 'Underline', 'Strike' ]
  17. }, {
  18. name : 'styles',
  19. items : [ 'Font', 'FontSize' ]
  20. }, {
  21. name : 'colors',
  22. items : [ 'TextColor', 'BGColor','sendperson','readperson','taskName','flowvars']
  23. }
  24. ]
  25. });
  26. return editor;
  27. };