-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Describe the feature you'd like
Hello everyone!
I'm currently evaluating wiki's for the ability to add a "shortcode" (e.g., [embed src="$apiEndpoint" fields="productName, productPrice"] similar to WordPress.
Adding this shortcode would make a call to the API endpoint and display the response (raw text or HTML) in the BookStack document when it is viewed. It would be great if this could be done as a custom button in the WYSIWYG editor or by adding the shortcode when editing the document in text only mode.
I assume this would require writing the functionality for the API call and parsing the shortcode in Laravel, I'm just curious if it's already been attempted or how difficult it would be. You would have to hook into the rendering of the document and parse the shortcode accordingly.
Describe the benefits this would bring to existing BookStack users
This would allow BookStack users to embed data from databases, APIs, and other systems.
Can the goal of this request already be achieved via other means?
I'm not sure.
Have you searched for an existing open/closed issue?
- I have searched for existing issues and none cover my fundamental request
How long have you been using BookStack?
Over 5 years
Additional context
No response