1 Reply Latest reply: May 11, 2011 2:07 PM by 851041 RSS

    How do we customize the default CKEditor for Web Form Editor in UCM 10gR3?

    851041
      Our customers are using the Web Form Editor for some WYSIWYG changes. The form has too many options and they would like to limit what the users can do. We have attempted to make changes to the following files to customize the CKEditor for Web Form Editor and cannot see our changes reflected after saving/restarting Content Server.
      Instance\weblayout\webform\ckeditor\config.js
      Instance\weblayout\resources\wcm\3rdparty\fckeditor\fckconfig.js
      Instance\custom\FCKEditor\webform\ckeditor\config.js

      To test a simple change we tried adding the following to change the toolbar options.
      CKEDITOR.editorConfig = function( config )
      {
      config.toolbar = 'MyToolbar';

      config.toolbar_MyToolbar =
      [
      ['NewPage','Preview'],
      ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Scayt'],
      ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
      ['Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
      '/',
      ['Styles','Format'],
      ['Bold','Italic','Strike'],
      ['NumberedList','BulletedList','-','Outdent','Indent'],
      ['Link','Unlink','Anchor'],
      ['Maximize','-','About']
      ];
      };

      There isn't much standard documentation on this out of the box feature and I've searched Oracle Support with no luck.

      Content Server 10gR3 (10.1.3.5.1)
      FCKEditor 2010_12_18 ($Rev: 90491 $) br-10g-10.1.3.5-release
      CS10gR35UpdateBundle 2011_02_08 (build 93)

      Thanks,
      Angela
        • 1. Re: How do we customize the default CKEditor for Web Form Editor in UCM 10gR3?
          851041
          Posting the answer:
          You need to make the changes to the webforms component inside the ~\custom\FormEditor\templates\fe_config.js file. Then propagate your changes using the Administration > Actions > Publish layout files page.

          One more quick question - where do we limit the Styles, Fonts, Sizes, Colors?
          in the same file we added lines similar to the following to limit the fonts,
          styles....
          CKEDITOR.config.font_names = 'Arial;Times New Roman;Verdana';
          CKEDITOR.config.fontSize_sizes = '16/16px;24/24px;48/48px;';