Expand my Community achievements bar.

Relevant sling:resourceType for xtype:htmleditor

Avatar

Employee Advisor

Hi,

I have created one custom component with xtype: htmleditor so, that I can achieve font face like "Arial", "tahoma" etc and font size as well.

 dialog editor with xtype has given here: 

 dialog editor on page while doing authoring have given here: 

The above one for classic UI. But, when I was trying to create cq:dialog for touch UI using dialog converter tool I couldn't get relevant sling:resourceType for "htmleditor ".

As we know that for xtype: textfield , textarea we have relevant resouceType :granite/ui/components/foundation/form/textfield and granite/ui/components/foundation/form/textarea, but here I am not getting relevant sling:resourceType.

  Don't we have relevant sling:resourceType for xtype:htmleditor ? Please confirm.

Thanks,

Debal

6 Replies

Avatar

Level 10

That looks like the RTE in thouch ui,

Avatar

Level 4

Scott, I've read somewhere that htmleditor is a RTE that allows inserting HTML tags (and maybe JS/CSS code?), but I'm not sure about that...

Regards,

Daniel.

Avatar

Employee Advisor

smacdonald2008 wrote...

That looks like the RTE in thouch ui,

 

Hi Scot,

Yes , the dialog editor with xtype:htmleditor looks like RTE. Now, I am planning to use xtype:richtext instead of xtype: htmleditor and I am following http://blogs.adobe.com/contentmanagement/tag/custom-richtext/ to make customization.

But, still I have 1 question "Don't we have relevant sling:resourceType for xtype:htmleditor ?

Thanks,

Debal

Avatar

Employee Advisor

Hi Scott,

Have referred following link: https://docs.adobe.com/docs/en/aem/6-2/administer/operations/page-authoring/rich-text-editor.html#Pa... Formats to implement Paragraph Formats and Styles (Text) with rich text editor.

Here is the dialog editor in classic UI -

 

Thanks,

Debal

Avatar

Employee Advisor

dinesh sundaram wrote...

I could see HtmlEditor in extjs doc (http://www.objis.com/formationextjs/lib/extjs-4.0.0/docs/api/Ext.form.field.HtmlEditor.html)

 

Hi Dinesh,

Yes, you are correct. I have referred https://docs.adobe.com/docs/en/aem/6-2/develop/ref/widgets-api/index.html while implementation.

But, when I was trying to create cq:dialog for touch UI using dialog converter tool I couldn't get relevant sling:resourceType for "htmleditor ".

Thanks,

Debal