Just wonder if there is a possibility to customize paragraph drop down to add additional tags. For example add a <p> tag with custom class definition like <p class="custom">
thank you
Mariusz Juszkiewicz
|
<ejs-richtexteditor id="default" actionComplete="actionCompleteHandler">
</ejs-richtexteditor>
<script>
function actionCompleteHandler(e) {
if (e.requestType === "P") {
e.elements[0].setAttribute("class", "e-custom");
}
}
</script> |
Thank for your reply.
In your answer current existing p tag is replaced with custom one. This works great.
However, Can you add more custom choices (menu items) to the drop down menu?
|
format: {
default: "Paragraph",
width: "65px",
types: [
{ text: "Paragraph" },
{ text: "Code" },
{ text: "Quotation" },
{ text: "Heading 1" },
{ text: "Heading 2" },
{ text: "Heading 3" },
{ text: "Heading 4" },
{ text: "Heading 5" },
{ text: "Heading 6" }
]
} |