yabwe 0.0.2

Dart js
Flutter web

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();
1
likes
80
pub points
33%
popularity

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

Homepage

Documentation

API reference

Uploader

segaud.kevin@gmail.com

License

MIT (LICENSE)

Dependencies

dart_browser_loader, js

More

Packages that depend on yabwe