Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/JoditAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2018 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace dmstr\jsoneditor;

use yii\web\AssetBundle;

class JoditAsset extends AssetBundle
{
public $sourcePath = '@dmstr/jsoneditor/assets/';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @dmstr/jsoneditor/assets/jodit here to prevent publishing unwanted files

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or why do we not use the files in /assets/jodit


public $js = [
'jodit/jodit.min.js',
];

public $css = [
'jodit/jodit.min.css'
];
}
2 changes: 0 additions & 2 deletions src/JsonEditorPluginsAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use yii\web\AssetBundle;
use dosamigos\selectize\SelectizeAsset;
use yii\web\JqueryAsset;
use dosamigos\ckeditor\CKEditorAsset;

class JsonEditorPluginsAsset extends AssetBundle
{
Expand All @@ -31,7 +30,6 @@ class JsonEditorPluginsAsset extends AssetBundle
public $depends = [
JsonEditorAsset::class,
SelectizeAsset::class,
CKEditorAsset::class,
JqueryAsset::class
];

Expand Down
211 changes: 152 additions & 59 deletions src/JsonEditorWidget.php

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions src/SceditorAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2018 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace dmstr\jsoneditor;

use yii\web\AssetBundle;
use yii\web\JqueryAsset;

class SceditorAsset extends AssetBundle
{
public $sourcePath = '@dmstr/jsoneditor/assets/sceditor/minified';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we not use the files in /assets/sceditor/minified?


public $js = [
'sceditor.min.js',
'formats/xhtml.js',
];

public $css = [
'themes/default.min.css',
];

public $depends = [
JqueryAsset::class
];
}
25 changes: 25 additions & 0 deletions src/SimpleMDEAsset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2018 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace dmstr\jsoneditor;

use yii\web\AssetBundle;

class SimpleMDEAsset extends AssetBundle
{
public $sourcePath = '@dmstr/jsoneditor/assets/simplemde';

public $js = [
'simplemde.min.js',
];

public $css = [
'simplemde.min.css'
];
}
1 change: 1 addition & 0 deletions src/assets/jodit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Jodit version 4.0.1
1 change: 1 addition & 0 deletions src/assets/jodit/jodit.min.css

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/assets/jodit/jodit.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/assets/sceditor/minified/formats/bbcode.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/assets/sceditor/minified/formats/xhtml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/assets/sceditor/minified/icons/material.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading