How to use the Rich Text editor in Eclipse RCP (Rich editor)

Source: Internet
Author: User
Tags ole

When you use Eclipse RCP to develop your own applications, you often need to use the editing and presentation of the format text. But the Swt/jface component does not provide the right components to accomplish this task, text is far from our requirements. The body part of the official document in my OA system needs a suitable rich editor to complete this task.

So the world looks for the right Java Rich Editor component to complete this requirement, and finally finds two technical solutions that are easier to use in Eclipse RCP, which I've used in my system

1, the use of Ekit components, Ekit is not a lot of open source Java Rich Editor components, and in terms of functionality can better meet the requirements of the text format. Because it is an AWT component, it is used in Eclipse RCP to perform the conversion of SWT Compsite to AWT frame using the Swt_awt bridge. The method I used was to wrap the Ekit in swt_awt and make an SWT component easy for my program to call. The disadvantage of this approach is that Ekit itself does not support the copy of OLE, from other OLE program paste content copy to write their own corresponding paste processing program, very annoying

2, use the JavaScript based Web rich editor component such as FCKeditor or TINYMCE, and invoke it using the Htmlcomposer component in SWT. The advantage of this way is to support a variety of programs ole paste, worry-saving.

By the way, show us the rich editor of our system and see how it works. If the other students have a better way also welcome to exchange!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.