Skip to content

Conversation

@germanbisurgi
Copy link
Collaborator

Alternatives for CKEditor: Jodit and SCEditor
Markdown editor: simpleMDE

@germanbisurgi germanbisurgi requested a review from schmunk42 April 29, 2024 13:23
@germanbisurgi germanbisurgi requested a review from eluhr April 30, 2024 09:20
@germanbisurgi
Copy link
Collaborator Author

editors-configs


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


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?

}
}';

$json = Yii::$app->settings->getOrSet('jodit.config', $joditConfig, 'jsoneditor', 'object');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Settings should be optional - see: #13

@eluhr
Copy link
Collaborator

eluhr commented Apr 30, 2024

Why are the assets bundles not in the assets directory?

@germanbisurgi germanbisurgi requested a review from eluhr April 30, 2024 13:41
@germanbisurgi
Copy link
Collaborator Author

Ping

Copy link
Collaborator

@eluhr eluhr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@schmunk42 schmunk42 left a comment

Choose a reason for hiding this comment

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

Please include the LICENSE files and a note in the README about the bundled assets.

@germanbisurgi germanbisurgi requested a review from schmunk42 May 7, 2024 11:35
@germanbisurgi germanbisurgi changed the title WIP: Feature/wysiwyg editors Feature/wysiwyg editors May 15, 2024
@germanbisurgi
Copy link
Collaborator Author

This pull request is no longer WIP. Should i merge and tag?

@schmunk42
Copy link
Member

Yes, go ahead.

@germanbisurgi germanbisurgi merged commit 9aa5d08 into dmstr:master May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants