Hi,
I want to set styles to Paragaraph, I am able to set the styles but after setting style the selected paragraphs are becoming bold. Editor is adding <Strong> tag to the selected Paragraphs. Please tell me any work around for this, or is it issue in Editor when we do PasteHtml with P tags. This happens for P tags
My Code is as below:
var cssTextFormed = "text-align:"+textAlign+";line-height:"+lineSpace+";text-indent:"+hanging+"; margin: "+ beforePara+ " "+ rightindents +" "+ afterPara +" "+ leftindents +";";
var editor =$find("RadEditor1");
//if more than one paragrah is selected then replace p tag with applied style
var selection = editor.getSelectionHtml().replace(/<P/g,'<P style='+cssTextFormed);
editor.pasteHtml(selection);
I want to set styles to Paragaraph, I am able to set the styles but after setting style the selected paragraphs are becoming bold. Editor is adding <Strong> tag to the selected Paragraphs. Please tell me any work around for this, or is it issue in Editor when we do PasteHtml with P tags. This happens for P tags
My Code is as below:
var cssTextFormed = "text-align:"+textAlign+";line-height:"+lineSpace+";text-indent:"+hanging+"; margin: "+ beforePara+ " "+ rightindents +" "+ afterPara +" "+ leftindents +";";
var editor =$find("RadEditor1");
//if more than one paragrah is selected then replace p tag with applied style
var selection = editor.getSelectionHtml().replace(/<P/g,'<P style='+cssTextFormed);
editor.pasteHtml(selection);