Hello!
I create custom functionality in editor and my question is how to implement automatic first line indent (for example for <p> tag).
Indents in the Editor are already implemented by default but this isn’t exactly I need.
The thing is that I expect this behavior:
” The new text… continues
continues, continues, continues”
if I code something like this:
action: function (widget, editor) {
editor.css('text-indent', '25px');
}
or this:
action: function (widget, editor) {
return { command: "inserthtml", value: '<p style="text-indent:25px">Some text</p>' };
}
This applies to all the lines that we are typing after function is applied like this
” The new text… continues
continues, continues, continues”
But I want the next line to be without indents.
Could you be so kind to give us a piece of advice how can we achieve it?