Skip to content

how to implement plugin in version 3 #1587

@astroforgit

Description

@astroforgit

to write a plugin a need somethink like :
........
import EditorInjector from '../src/plugins/EditorInjector';
import { dom } from '../../src/plugins/modules';

class TextObjectImage extends EditorInjector {

.........

but i need to use npm version of suneditor to use import , or be inside suneditor project.
I want to have a plugin in diffrent repo , and import suneditor using npm (not available for version 3 ) , or use some local build. like for example: http://localhost:8088/suneditor.239c4271574a61e27023.js , but for bundled one probably i cannot use import outside of it like :

<script source = '.....bundledsunetitor.js'/> <script > ......... import EditorInjector from '../src/plugins/EditorInjector'; ........ So what would be the best practice to write own plugin as external repo ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions