Closed buchatsky closed 1 year ago
Fixed in https://github.com/sibiraj-s/ngx-editor/commit/217cfe3fdf9e89740e58b7b3c1372c3ced2626cb will be published soon.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.
Proposal
I have images stored in DB and accessed via some web service. The access to the service is controlled by OAuth access_token, which should be attached as a query parameter to an image URL. So, the URL is volatile and should not be stored in the document itself but is to be generated on the fly. Instead, data-image-id attribute is stored in the document and is used to generate URL like "/api/images(imageId)?access_token=access_token_value". Currently ImageViewComponent class is declared as "export" but trying to use it like
import { ImageViewComponent } from 'ngx-editor/lib/components/image-view/image-view.component';
brings an error `Error: Module not found: Error: Package path ./lib/components/image-view/image-view.component is not exported from package