mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 04:38:49 +01:00
RICHER_CARD_COMMENT_EDITOR=true has no effect (no rich text toolbar shown) fixed!
This commit is contained in:
parent
a5651c686f
commit
836226a8d3
1 changed files with 5 additions and 7 deletions
|
|
@ -79,7 +79,6 @@ BlazeComponent.extendComponent({
|
||||||
autosize($textarea);
|
autosize($textarea);
|
||||||
$textarea.escapeableTextComplete(mentions);
|
$textarea.escapeableTextComplete(mentions);
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
if (Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === true || Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === 'true') {
|
if (Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === true || Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR === 'true') {
|
||||||
const isSmall = Utils.isMiniScreen();
|
const isSmall = Utils.isMiniScreen();
|
||||||
const toolbar = isSmall
|
const toolbar = isSmall
|
||||||
|
|
@ -117,8 +116,8 @@ BlazeComponent.extendComponent({
|
||||||
].join('|');
|
].join('|');
|
||||||
const badPatterns = new RegExp(
|
const badPatterns = new RegExp(
|
||||||
`(?:${[
|
`(?:${[
|
||||||
`<(${badTags})s*[^>][\\s\\S]*?<\\/\\1>`,
|
`<(${badTags})\s*[^>][\s\S]*?<\/\1>`,
|
||||||
`<(${badTags})[^>]*?\\/>`,
|
`<(${badTags})[^>]*?\/>`,
|
||||||
].join('|')})`,
|
].join('|')})`,
|
||||||
'gi',
|
'gi',
|
||||||
);
|
);
|
||||||
|
|
@ -128,9 +127,9 @@ BlazeComponent.extendComponent({
|
||||||
// remove attributes ' style="..."'
|
// remove attributes ' style="..."'
|
||||||
const badAttributes = new RegExp(
|
const badAttributes = new RegExp(
|
||||||
`(?:${[
|
`(?:${[
|
||||||
'on\\S+=([\'"]?).*?\\1',
|
'on\\S+=([\'\"]?).*?\\1',
|
||||||
'href=([\'"]?)javascript:.*?\\2',
|
'href=([\'\"]?)javascript:.*?\\2',
|
||||||
'style=([\'"]?).*?\\3',
|
'style=([\'\"]?).*?\\3',
|
||||||
'target=\\S+',
|
'target=\\S+',
|
||||||
].join('|')})`,
|
].join('|')})`,
|
||||||
'gi',
|
'gi',
|
||||||
|
|
@ -300,7 +299,6 @@ BlazeComponent.extendComponent({
|
||||||
} else {
|
} else {
|
||||||
enableTextarea();
|
enableTextarea();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
enableTextarea();
|
enableTextarea();
|
||||||
},
|
},
|
||||||
events() {
|
events() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue