-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from kosssi/feature/ckeditor
integrate ckeditor
- Loading branch information
Showing
11 changed files
with
118 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.DS_Store | ||
/vendor/ | ||
Resources/public/vendor/hallo | ||
vendor/ | ||
Resources/public/vendor/hallo | ||
Resources/public/vendor/ckeditor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
jQuery(document).ready(function() { | ||
jQuery('body').midgardCreate({ | ||
url: function() { | ||
if (this.id) { | ||
if (this.id.charAt(0) == "<") { | ||
return cmfCreatePutDocument + this.id.substring(1, this.id.length - 1); | ||
} | ||
return cmfCreatePutDocument + "/" + this.id; | ||
} | ||
return cmfCreatePutDocument; | ||
}, | ||
stanbolUrl: cmfCreateStanbolUrl, | ||
tags: true, | ||
editorOptions: { | ||
ckeditor: { | ||
widget: 'ckeditorWidget' | ||
} | ||
}, | ||
collectionWidgets: { | ||
'default': null, | ||
'feature': 'midgardCollectionAdd' | ||
} | ||
}); | ||
|
||
window.CKEDITOR.basePath = cmfCreateEditorBasePath; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% include "SymfonyCmfCreateBundle::includejsfiles-create.html.twig" %} | ||
|
||
<script>window.CKEDITOR_BASEPATH = cmfCreateEditorBasePath;</script> | ||
{% javascripts output="/js/ckeditor.js" | ||
'@SymfonyCmfCreateBundle/Resources/public/js/init-create-ckeditor.js' | ||
'@SymfonyCmfCreateBundle/Resources/public/vendor/ckeditor/ckeditor.js' | ||
%} | ||
<script src="{{ asset_url }}"></script> | ||
{% endjavascripts %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change breaks system as value is not present - can you provide default value and / or offer default config setting in docs?