How can I apply a style in Wygwam editor so that the following code

    <li>Here's bullet point number one</li>

Changes to this

<ul data-bullet="ti-arrow-right" class="lead">
    <li><i class="ti-arrow-right"></i>Here's bullet point number one</li>

1 Answer 1


I do not believe you can without a parsing the data after it is submitted. Addone would be needed.

My only thoughts would be to use the style drop down. So for example they paste the list in, then highlight it, and in the WYGWAM styles drop down they select a style which allpies what you want:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.