extjs - How to insert <strong>-Tags instead of <b>-Tags on RichText widget -


on dialog have richtext widget configured bold plugin.

my problem is, have change content not saved inside <b>-tags inside <strong>-tags.

i tried solve overriding cq.form.rte.commands.defaultformatting.gettagnameforcommand function. result looking this:

gettagnameforcommand: function(cmd) {     var cmdlc = cmd.tolowercase();     var tagname = null;     switch (cmdlc) {         case "bold":             tagname = "strong";             break;         case "italic":             tagname = "i";             break;         case "underline":             tagname = "u";             break;         case "subscript":             tagname = "sub";             break;         case "superscript":             tagname = "sup";             break;     }     return tagname; } 

unfortunately works if open dialog , set "bold". after saving , reopening dialog again not possible anymore remove <strong>-tags.

i tried override/extend cq.form.rte.plugins.formatplugin , cq.form.rte.commands.defaultformatting support "strong" command. results in same problem.

my client wants <strong>-tag because of seo issues. won't accept <b>-tag.

is there way solve that?

greetings
sören

edit
solution given on <strong> tag getting replaced <b> tag in cq5 doesn't work. adding described configuration not save strong tags. understand solution misctools.

i wanted same thing in aem6. i've taken approach of copying relevant js, /libs/cq/ui/rte/core/commands/defaultformatting.js , adding under apps content folder, /apps/cq/ui/rte/core/commands/defaultformatting.js amended copy of defaultformatting.js copied under apps. aem6 seems use 'overlay' technique apply strong tag.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -