Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3096 Представления

I would like to add  custom styles to the website editor

addons/web_editor/static/src/xml/editor.xml


                    <li id="paragraph-dropdown-item">

<a class="dropdown-item" href="#" id="paragraph" data-call="setTag" data-arg1="p">Normal</a>

</li>

<li id="pre-dropdown-item">

<a class="dropdown-item" href="#" id="pre" data-call="setTag" data-arg1="pre"><pre>Code</pre></a>

</li>

<li id="heading1-dropdown-item">

<a class="dropdown-item" href="#" id="heading1" data-call="setTag" data-arg1="h1"><h1>Header 1</h1></a>

</li>


I would like to add an option here and i know how to do that with xpath in a module

Something like


<p class="normal-serif">


But not sure what i should add to the data-arg1 in that case.

Anyone an idea ?


Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
окт. 22
895
1
нояб. 23
3949
1
янв. 22
3820
1
нояб. 21
2264
0
сент. 21
3186