Hallo itself only makes the selected DOM elements editable and doesn't provide any formatting tools. Formatting is accomplished by loading plugins when initializing Hallo. Even simple things like bold and italic are plugins:
jQuery('.editable').hallo({
plugins: {
'halloformat': {}
}
});
but when I invoke jQuery('p').hallo({editable: true}); it only sets contenteditble="true", it doesn't add class="editable".
I'm guessing that the user must add class="editable", it is not added by hallo. The documentation fails to mention this - so the examples using jQuery('.editable').hallo(...) are confusing, not knowing that.
doc says:
but when I invoke
jQuery('p').hallo({editable: true});
it only setscontenteditble="true"
, it doesn't addclass="editable"
. I'm guessing that the user must addclass="editable"
, it is not added by hallo. The documentation fails to mention this - so the examples usingjQuery('.editable').hallo(...)
are confusing, not knowing that.