Skip to content

Commit 5eb4b27

Browse files
committed
feat(suneditor): blank links have rel attributes and allow relative link
1 parent 4e2021a commit 5eb4b27

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

assets/js/editors/editors/suneditor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export default {
3737
height,
3838
buttonList,
3939
lang: lang[locale],
40+
linkRelDefault: {
41+
check_new_window: 'noreferrer noopener',
42+
},
43+
linkNoPrefix: true,
4044
...customConfig
4145
};
4246
const editor = editorModel.create(component, config);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
"gulp": "^4.0.2",
3232
"highlight.js": "^11.10.0",
3333
"mustache": "^4.0.1",
34-
"suneditor": "^2.47.0"
34+
"suneditor": "^2.47.5"
3535
}
3636
}

src/Resources/public/js/rich-editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)