| | |
| | | document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true});
|
| | |
|
| | | if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) {
|
| | | setWrap('soft');
|
| | | turnWrapOn();
|
| | | document.getElementById('wraped').checked = true;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | function toggleWordWrap(elm) {
|
| | | if (elm.checked)
|
| | | setWrap('soft');
|
| | | else
|
| | | function setWhiteSpaceCss(value) {
|
| | | var el = document.getElementById('htmlSource');
|
| | | tinymce.DOM.setStyle(el, 'white-space', value);
|
| | | }
|
| | |
|
| | | function turnWrapOff() {
|
| | | if (tinymce.isWebKit) {
|
| | | setWhiteSpaceCss('pre');
|
| | | } else {
|
| | | setWrap('off');
|
| | | }
|
| | | }
|
| | |
|
| | | function turnWrapOn() {
|
| | | if (tinymce.isWebKit) {
|
| | | setWhiteSpaceCss('pre-wrap');
|
| | | } else {
|
| | | setWrap('soft');
|
| | | }
|
| | | }
|
| | |
|
| | | function toggleWordWrap(elm) {
|
| | | if (elm.checked) {
|
| | | turnWrapOn();
|
| | | } else {
|
| | | turnWrapOff();
|
| | | }
|
| | | }
|
| | |
|
| | | function resizeInputs() {
|