내 커뮤니티 업적 표시줄을 확대합니다.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Change the default font of the paragraph content in richtext widget

Avatar

Level 1

I want to change the default look and feel(like size, color) of the content of richtext widget. I tried set the cls property when defining the widget, but it doesn't work. any idea?

 

thx

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 7

You can create your own text component in which you can extend the RTE plugin.
The plugin can be customized itself (see the second link from Yogesh)  but you can also add your own styles in a css file that will target the specified elements. Just create the specified css files in include it in the clientlib for the component. Then make sure that clientlib is also included in your app. Look at the following code from the link Yogesh sent:

You may want to specify stylesheets that are optimized for rich text editing. Due to technical restrictions the CSS context is lost in the editor, so you may want to emulate this context to improve the WYSIWYG experience. The Rich Text Editor uses a container DOM element with an ID of CQrte which may be used to provide different styles for viewing and editing: #CQ td { // defines the style for viewing } #CQrte td { // defines the style for editing }

 


Hope that will solve your problems!

원본 게시물의 솔루션 보기

3 답변 개

Avatar

정확한 답변 작성자:
Level 7

You can create your own text component in which you can extend the RTE plugin.
The plugin can be customized itself (see the second link from Yogesh)  but you can also add your own styles in a css file that will target the specified elements. Just create the specified css files in include it in the clientlib for the component. Then make sure that clientlib is also included in your app. Look at the following code from the link Yogesh sent:

You may want to specify stylesheets that are optimized for rich text editing. Due to technical restrictions the CSS context is lost in the editor, so you may want to emulate this context to improve the WYSIWYG experience. The Rich Text Editor uses a container DOM element with an ID of CQrte which may be used to provide different styles for viewing and editing: #CQ td { // defines the style for viewing } #CQrte td { // defines the style for editing }

 


Hope that will solve your problems!

Avatar

Level 5

Avatar

Level 1

Hi Yogesh, I am not quite understand http://helpx.adobe.com/communique/kb/CustomRichTextEditor.html. All I want is changing the font-size of the text in rte body(It a little small by default), can I just override some css to achieve that?

 

thx