Skip to content

Commit

Permalink
Merge pull request #8 from netgen/readme
Browse files Browse the repository at this point in the history
Add readme file
  • Loading branch information
emodric authored Oct 11, 2023
2 parents 2d87758 + 77bb806 commit 8d6e588
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# ibexa-fieldtype-html-text

# TODO
[![Downloads](https://img.shields.io/packagist/dt/netgen/ibexa-fieldtype-html-text.svg)](https://packagist.org/packages/netgen/ibexa-fieldtype-html-text)
[![Latest stable](https://img.shields.io/packagist/v/netgen/ibexa-fieldtype-html-text.svg)](https://packagist.org/packages/netgen/ibexa-fieldtype-html-text)
[![PHP](https://img.shields.io/badge/PHP-%E2%89%A5%208.1-%238892BF.svg)](https://www.php.net)
[![Ibexa](https://img.shields.io/badge/Ibexa-%E2%89%A5%204.0-orange.svg)](https://www.ibexa.co)

Html text field type for Ibexa CMS offers the possibility to render WYSIWYG field both on the frontend and in Ibexa administration.

Installation steps
-----------
### Use Composer
Run composer require:
```
composer require netgen/ibexa-fieldtype-html-text
```

### Activate the bundle
Activate the bundle in `config/bundles.php` file.

```php
<?php

return [
...,

Netgen\IbexaFieldTypeHtmlTextBundle\NetgenIbexaFieldTypeHtmlTextBundle::class => ['all' => true],,

...
];
```

### Include the javascript file on the frontend
Inside the base twig file for your frontend siteaccess, include the built `app.js` file:
```
<script src="{{ asset('bundles/netgenibexafieldtypehtmltext/build/app.js') }}"></script>
```

5 changes: 0 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ Encore
config.corejs = 3;
});

//
// Encore.addAliases({
// '@ckeditor': path.resolve('./public/bundles/ibexaadminuiassets/vendors/@ckeditor'),
// });

const nghtmltextApp = Encore.getWebpackConfig();

nghtmltextApp.watchOptions = { poll: true, ignored: /node_modules/ };
Expand Down

0 comments on commit 8d6e588

Please sign in to comment.