From 3d834e4137550d1d43903035e246b9150763b6d3 Mon Sep 17 00:00:00 2001 From: Ivan Nesterov <111433564+thenesterov@users.noreply.github.com> Date: Sat, 7 Dec 2024 01:39:45 +0500 Subject: [PATCH 1/2] $mol_textarea: add ability to override syntax --- textarea/textarea.view.tree | 1 + textarea/textarea.view.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/textarea/textarea.view.tree b/textarea/textarea.view.tree index 7c50e358b77..ade7c356318 100644 --- a/textarea/textarea.view.tree +++ b/textarea/textarea.view.tree @@ -23,6 +23,7 @@ $mol_textarea $mol_stack row_numb* <= row_numb* 0 sidebar_showed <= sidebar_showed highlight <= highlight \ + syntax <= syntax null symbols_alt *string comma \< period \> diff --git a/textarea/textarea.view.ts b/textarea/textarea.view.ts index a8e3f349b2d..e955610a2c4 100644 --- a/textarea/textarea.view.ts +++ b/textarea/textarea.view.ts @@ -107,6 +107,9 @@ namespace $.$$ { return index } + syntax() { + return this.$.$mol_syntax2_md_code + } } } From 3dd2d08b55e7fee2d98824aa1ed646c206c691cc Mon Sep 17 00:00:00 2001 From: Ivan Nesterov <111433564+thenesterov@users.noreply.github.com> Date: Sat, 7 Dec 2024 02:45:45 +0500 Subject: [PATCH 2/2] $mol_textarea: change syntax default value --- textarea/textarea.view.tree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textarea/textarea.view.tree b/textarea/textarea.view.tree index ade7c356318..cb602544b0a 100644 --- a/textarea/textarea.view.tree +++ b/textarea/textarea.view.tree @@ -23,7 +23,7 @@ $mol_textarea $mol_stack row_numb* <= row_numb* 0 sidebar_showed <= sidebar_showed highlight <= highlight \ - syntax <= syntax null + syntax <= syntax $mol_syntax2 symbols_alt *string comma \< period \>