mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-05 17:21:16 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92500 467b73ca-7a2a-4603-9d3b-597d59a354a9
15 lines
337 B
JavaScript
15 lines
337 B
JavaScript
tinyMCEPopup.requireLangPack();
|
|
|
|
var CodeDialog = {
|
|
init : function() {
|
|
var f = document.forms[0];
|
|
f.codepress.value = tinyMCEPopup.editor.getContent();
|
|
},
|
|
|
|
insert : function() {
|
|
tinyMCEPopup.editor.setContent(codepress.getCode());
|
|
tinyMCEPopup.close();
|
|
}
|
|
};
|
|
|
|
tinyMCEPopup.onInit.add(CodeDialog.init, CodeDialog); |