Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatbiralem committed May 17, 2020
1 parent 9ee0c13 commit be4f3c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,28 @@ You can import this plugin into your project as follows:
If you want to import the plugin with your webpack build you can do it by:

```js
import initReadMoreReadLess from "read-more-read-less/src/js/init";
initReadMoreReadLess();
import "read-more-read-less";
```

You should look at `sass-loader` implementation on [webpack documentation](https://webpack.js.org/loaders/sass-loader/).

### Refresh

You can process new dynamic contents by calling:

```
window.processReadMoreReadLess();
```

or in Webpack way:

```js
import processReadMoreReadLess from "read-more-read-less/src/js/utils/process";
processReadMoreReadLess();
```

Only news ones will be processed.

## Examples

### Works inline
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "read-more-read-less",
"version": "1.0.12",
"version": "1.0.13",
"description": "Zero dependency read more link implementation to any kind of content.",
"main": "src/js/index.js",
"scripts": {
Expand Down

0 comments on commit be4f3c4

Please sign in to comment.