K
K
kostya vlasov2021-04-16 16:43:58
CKEditor
kostya vlasov, 2021-04-16 16:43:58

How to highlight variables in CKEditor?

The implementation is as follows:

1) It is necessary to make sure that when entering text of such a plan:
Hi, {{ name }}
CKEditor highlights the conditional variable {{ name }} and highlights it with code tags (there can be not only name, the name of the variable can be anything, the main thing is that it be wrapped in {{ ... }})

2) When the user starts typing {{.. then a prepared list with variables comes out so that the user can select a variable and it is inserted into the input field

Please tell me who dealt with CKEditor , in which direction to dig, you need to write your plugin or it can be configured through the config, for a start, you would only deal with the first item.

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question