Rich Text Editor inside Flux Form

点点圈 提交于 2020-01-04 23:04:13

问题


I am using flux and I want to display rte(Rich text editor) in backend form using flux.

 <f:section name="Configuration"> 
    //...Here i want to display rte element
 </f:section>

回答1:


With Flux Form you can use Below code

<f:section name="Configuration">
   <flux:field.text name="Text" label="Whatever" enableRichText="1" />
</f:section>

In the Form You can use below

<f:section name="Main">
    <f:format.html>{Text}</f:format.html> 
<f:section name="Main">

Please Enable Rich Text Editor From Tools >> User Setting >> Edit & Advanced functions.

For More Help You can see here



来源:https://stackoverflow.com/questions/31940825/rich-text-editor-inside-flux-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!