Add a custom widget on submitting a new post.
-
Like that...
There is only a tag input here, I need to add extra widgets, so which hook should I choose? -
@jiangcaiyang what are you looking to add? You may need to just use a client-side hook (action:composer.enhance), and add what you want to add manually.
This use case could be a good candidate for a new hook, though.
-
Thanks, I'll try that, I am going to make a small hint, such as text and image path.
-
@PitaJ Unfortunately, maybe
action:composer.enhance
is not what I am searching for. Look at the last line, at present, It only contains tag input. I want to add another widget and layout out with it horizontally. -
@jiangcaiyang what did you do? I meant using jQuery to add new HTML elements. You may need to add new CSS as well.
-
@PitaJ That can be true if I do that. Or I am choosing something else, to add a icon like emoji instead.