mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Implement TextFormatter for posts
Get rid of formatting on user bios, we'll do that with JavaScript
This commit is contained in:
@@ -35,7 +35,7 @@ export default class UserBio extends Component {
|
||||
let subContent;
|
||||
|
||||
if (this.loading) {
|
||||
subContent = <p className="UserBio-placeholder">{LoadingIndicator.component()}</p>;
|
||||
subContent = <p className="UserBio-placeholder">{LoadingIndicator.component({size: 'tiny'})}</p>;
|
||||
} else {
|
||||
const bioHtml = user.bioHtml();
|
||||
|
||||
|
@@ -15,7 +15,7 @@ export default class User extends mixin(Model, {
|
||||
|
||||
avatarUrl: Model.attribute('avatarUrl'),
|
||||
bio: Model.attribute('bio'),
|
||||
bioHtml: Model.attribute('bioHtml'),
|
||||
bioHtml: computed('bio', bio => '<p>' + $('<div/>').text(bio).html() + '</p>'),
|
||||
preferences: Model.attribute('preferences'),
|
||||
groups: Model.hasMany('groups'),
|
||||
|
||||
|
Reference in New Issue
Block a user