hallo-js

How to add custom class in wagtail richtextfiled

六眼飞鱼酱① 提交于 2019-12-25 01:29:41
问题 how can i add button which adds class in hallo.js editor? Here is my code, but it dont works, it ony register fuction in wagtai;s edit interface. In the end I need to add any class to selection or current tag. Mb I can see it in html in someway and add classes manually? (function() { (function(jQuery) { return jQuery.widget('IKS.center', { options: { editable: null, toolbar: null, uuid: '', buttonCssClass: 'center' }, populateToolbar: function(toolbar) { var buttonElement, buttonset;

How do i customize hallo.js to use <strong> instead of <b>?

隐身守侯 提交于 2019-12-23 12:56:05
问题 The question pretty much says it all. Im using hallo.js and it seems to use <b> and <i> for bold and italic. Some of my markup currently requires strong and em in order to have certain CSS rules apply. I also prefer strong and em in general to b and i so Id like to configure this. There doesnt seem to be any documentation on this directly - can it be done? 回答1: This can't be done as the markup is not up to hallo.js or any other rich text editor. They just trigger inserting markup, but the

Wagtail / Hallo.js - Adding plugins but modified content is not saved

纵饮孤独 提交于 2019-12-10 20:09:12
问题 I'm running on Wagtail 1.3.1, Django 1.7.11. I have activated hallohtml and hallojustify plugins and they appear in toolbar (without icons but buttons are here). The buttons can be used and the modifications are seen in the textarea (I mean that I can center a field for example and I see it). When I publish the page, the modifications made by either hallojustify or hallohtml are not saved whereas I can still use the bold/italic buttons and save the content. It looks like the html is cleaned