|
|
|
@ -19,6 +19,10 @@ export class NormComponent extends EditorNodeContract implements OnInit {
|
|
|
|
|
private dirtyOverride = false;
|
|
|
|
|
protected hadOneFocusOut = false;
|
|
|
|
|
|
|
|
|
|
public get displayContents() {
|
|
|
|
|
return this.contents.replace(/</g, '\n<').replace(/(https?:\/\/[^\s]+)/g, (val) => `<a href="${val}" target="_blank">${val}</a>`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
|
public editorService: EditorService,
|
|
|
|
|
) {
|
|
|
|
|