yabwe 0.0.2 copy "yabwe: ^0.0.2" to clipboard
yabwe: ^0.0.2 copied to clipboard

Wrap of Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.

Wrap of MediumEditor

Basic usage #

<head>
    ...
    <script src="//cdn.jsdelivr.net/npm/medium-editor@latest/dist/js/medium-editor.min.js"></script>
    <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/medium-editor@latest/dist/css/medium-editor.min.css" type="text/css" media="screen" charset="utf-8">
    ...
</head>

<body>
    ...
    <div class="editable"></div>
    ...
</body>
final mediumEditor = new MediumEditor(element.querySelector('.editable'),
    options: new MediumEditorOptions(
        placeholder:
            new PlaceHolderOptions(text: 'Your note', hideOnClick: true)));

To set the content of the editor use setContent like that

mediumEditor.setContent("Edit me!");

And to get the content of the editor use getContent

final content = mediumEditor.getContent();
6
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Wrap of Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.

Homepage

License

MIT (LICENSE)

Dependencies

dart_browser_loader, js

More

Packages that depend on yabwe