Home
last modified time | relevance | path

Searched refs:moaiEditor (Results 1 – 25 of 30) sorted by relevance

12

/plugin/moaieditor/scripts/
Dlayout.js85 for (let name in moaiEditor.plugins)
86 if (moaiEditor.plugins[name].onSpecificLayout)
87 moaiEditor.plugins[name].onSpecificLayout(mode);
136 moaiEditor.buttons.save.handle.name = 'do[save]';
137 moaiEditor.buttons.cancel.handle.name = 'do[cancel]';
138 moaiEditor.buttons.save.handle.value = '1';
139 moaiEditor.buttons.cancel.handle.value = '1';
140 moaiEditor.buttons.save.handle.setAttribute ("form",'dw__editform');
141 moaiEditor.buttons.cancel.handle.setAttribute("form",'dw__editform');
144moaiEditor.buttons.save.handle.addEventListener("click", function(){ window.onbeforeunload=''; tex…
[all …]
Dlayout_vphone.js39 this.btn_goLeft = moaiEditor.buttons.goLeft;
40 this.btn_goRight = moaiEditor.buttons.goRight;
45 …this.left = moaiEditor.createHTML('<div id="moaied__phone_left"></div>'); // Buttons and…
46 …this.right = moaiEditor.createHTML('<div id="moaied__phone_right"></div>'); // Both panes …
56 …this.leftRow1 = moaiEditor.createHTML('<div id="moaied__phone_left_row1" class="moaied-phone-row">…
57 …this.leftRow2 = moaiEditor.createHTML('<div id="moaied__phone_left_row2" class="moaied-phone-row">…
63 left.appendChild(moaiEditor.buttons.back.handle);
71 …var main = moaiEditor.createHTML('<div id="moaied__phone_left_main"></div>'); // Container for:…
72 var sidebar = moaiEditor.createHTML('<div id="moaied__phone_sidebar"></div>');
85 this.leftButtons = moaiEditor.createHTML('<div id="moaied__phone_left_buttons"></div>');
[all …]
Deditor.js30 this.editors.push({object:moaiEditor.mirror, name:'native'});
31 for (let name in moaiEditor.plugins) {
32 const plugin = moaiEditor.plugins[name];
52 moaiEditor.layout.goRight();
54 moaiEditor.scroll.halt();
56 moaiEditor.scroll.copy();
66 moaiEditor.scroll.paste();
78 moaiEditor.dirty.showDirtyArea();
87 moaiEditor.layout.goRight();
89 const value = {soft:'off', off:'soft'}[moaiEditor.editor.linewrap.value];
[all …]
Dtoc.js29 … const container = moaiEditor.createHTML(' <div id="moaied__toc" style="display:none"></div>');
30 …const title = moaiEditor.createHTML(' <label id="moaied__toc_label">Table of contents</label>'…
31 const dropdowns = moaiEditor.createHTML(' <div id="moaied__toc_dropdowns"></div>');
32 const depth = moaiEditor.createHTML('<select id="moaied__toc_depth"></select>');
33 const wrapper = moaiEditor.createHTML(' <div id="moaied__toc_wrapper"></div>');
34 const sections = moaiEditor.createHTML('<select id="moaied__toc_sections"></select>');
35 const dummy = moaiEditor.createHTML('<select id="moaied__toc_dummy"></select>');
55 depth.appendChild(moaiEditor.createHTML('<option value="'+i+'">h'+i+'</option>'));
69 for (let match of moaiEditor.matches.matches)
103 this.sections.appendChild(moaiEditor.createHTML('<option></option>'));
[all …]
Dlayout_desktop.js72 …this.row1 = moaiEditor.createHTML('<div id="moaied__row1"></div>'); // Page lo…
73 …this.row2 = moaiEditor.createHTML('<div id="moaied__row2"></div>'); // Toolbar…
74 …this.paneswrapper = moaiEditor.createHTML('<div id="moaied__panes_wrapper"></div>'); // This di…
75 …this.footer = moaiEditor.createHTML('<div id="moaied__footer"></div>'); // Footer …
90 …this.topleft = moaiEditor.createHTML('<div id="moaied__topleft"></div>'); // Back button…
91 …this.toc = moaiEditor.toc.container; // Table of co…
93 …this.buttons = moaiEditor.createHTML('<div id="moaied__buttons"></div>'); // Editor butt…
99 this.topleft.appendChild(moaiEditor.buttons.back.handle);
127 …this.row2left = moaiEditor.createHTML('<div id="moaied__row2_left" class="moaied-second-to-shrink"…
128 …this.row2right = moaiEditor.createHTML('<div id="moaied__row2_right" class="moaied-first-to-shrink…
[all …]
Dmirror.js69 this.textarea = moaiEditor.layout.textarea;
72 var line = moaiEditor.createHTML('<div class="moaied-mirror-line"></div>');
73 var content = moaiEditor.createHTML('<span class="moaied-mirror-line-content"></span>');
74 var match = moaiEditor.createHTML('<div class="moaied-highlight-match"></div>');
81 …this.mirror = moaiEditor.createHTML('<div id="moaied__mirror" class="moaied-display-none"></div>');
82 moaiEditor.layout.editpane.appendChild(this.mirror);
85 this.content = moaiEditor.createHTML('<div id="moaied__mirror_content"></div>');
90 this.dirty = moaiEditor.createHTML('<div class="moaied-show-dirty-area"></div>');
94 …const scrollpoints = moaiEditor.createHTML('<div id="moaied__scrollpoints_overlay" class="moaied-h…
103 …this.flashbox = moaiEditor.createHTML('<div id="moaied__mirror_flashbox" class="moaied-flashbox"><…
[all …]
Ddraft.js53 this.button = moaiEditor.buttons.save;
54 this.container = moaiEditor.createHTML('<div id="moaied__draft_save_indicator"></div>');
56 this.dot = moaiEditor.createHTML('<div></div>');
67 if (moaiEditor.layoutReady) {
89 if (moaiEditor.layoutReady) {
91 this.dot = moaiEditor.createHTML('<div></div>');
Dajax.js29 if (!moaiEditor.layoutReady)
37 const payload = moaiEditor.dirty.onRequest();
49 moaiEditor.buttons.preview.mode = 'loading';
69 if (!moaiEditor.dirty.onResponse(id, html)) {
84 moaiEditor.buttons.preview.mode = 'normal';
99 moaiEditor.buttons.preview.mode = 'error';
159 if (!moaiEditor.layoutReady)
164 if (moaiEditor.buttons.livepreview.mode == 'on')
165 if (moaiEditor.dirty.state.current.changed)
Dhint.js33 const arrow = moaiEditor.icons.ico_arrowright;
34 … const wrapper = moaiEditor.createHTML('<div class="moaied-hint moaied-hint-arrow-right"></div>');
35 const content = moaiEditor.createHTML('<span><i>'+text+'</i>'+arrow+'</span>');
43 const arrow = moaiEditor.icons.ico_arrow_corner_leftdown;
44 …const wrapper = moaiEditor.createHTML('<div class="moaied-hint moaied-hint-arrow-corner-left-down"…
45 const content = moaiEditor.createHTML('<span>'+arrow+'<i>'+text+'</i></span>');
Dpreview.js27 this.content = moaiEditor.createHTML('<div id="moaied__preview_content"></div>');
30 …this.flashbox = moaiEditor.createHTML('<div id="moaied__preview_flashbox" class="moaied-flashbox">…
48 …this.flashbox = moaiEditor.createHTML('<div id="moaied__preview_flashbox" class="moaied-flashbox">…
51 const rect = moaiEditor.scroll.tools.getRectRelativeToParent(data.element);
81 return moaiEditor.scroll.tools.getMaxScrollY(this.outer.container);
Dhighlight_header.js17 const matcher = moaiEditor.matches.matcher;
40 var inner = moaiEditor.createHTML('<span class="moaied-syntax-inner"></span>');
42 var box = moaiEditor.createHTML('<span class="moaied-syntax-box">'+type+'</span>');
43 var outer = moaiEditor.createHTML('<span class="moaied-syntax-header '+type+'"></span>');
Dstart.js23 …const png = moaiEditor.createHTML(`<img id="moaied-start-png" src="${baseurl}/icons/start.png"></b…
37 …const button = moaiEditor.createHTML('<button id="moaied-start-button" type="submit">&nbsp;'+html+…
44 moaiEditor.startEditor(); // Start the editor now
Ddirty.js51 if (this.firstPreview || moaiEditor.buttons.partialpreview.mode == 'off') {
55 text = moaiEditor.editor.current.text;
106 const lines = moaiEditor.editor.current.watcher.lines;
141 moaiEditor.scroll.sync.disabled = true;
168 moaiEditor.matches.update(top, bottom);
171 moaiEditor.toc.update();
180 moaiEditor.scroll.sync.disabled = false;
294 moaiEditor.ajax.timer.reset();
307 for (let match of moaiEditor.matches.matches) {
353 const editor = moaiEditor.editor.current;
Dbuttons.js27 icon: moaiEditor.icons.preview,
28 onClick: moaiEditor.ajax.onPreviewBtnClick.bind(moaiEditor.ajax),
280 moaiEditor.buttons.onclick_panes();
284 moaiEditor.layout.desktop.onClickPanesBtn();
298 var left = moaiEditor.layout.editpane;
299 var right = moaiEditor.layout.preview;
Dwatcher.js48 if (!moaiEditor.layoutReady)
66 this.string = moaiEditor.layout.textarea.value;
130 moaiEditor.buttons.styleExitButtons();
Dbutton.js67 this.handle = moaiEditor.createHTML(html);
118 icon = moaiEditor.icons?.[state?.icon ?? this.icon];
/plugin/moaieditor/plugins/captcha/
Dcaptcha.js35 const original_onclick_save = moaiEditor.buttons.save.__onClick;
36 moaiEditor.buttons.save.__onClick = function (event) { method
39 const self = moaiEditor.plugins.captcha;
42 return original_onclick_save.bind(moaiEditor.buttons.save, event);
47 moaiEditor.dokuMessage(msg, 2); // Show message
49moaiEditor.layout.goLeft(); // In mobile mode scroll to the left side to show the …
57 moaiEditor.layout.desktop.footerLeft.appendChild(this.wrapper);
62 const element = moaiEditor.createHTML('<div><label>Captcha</label></div>');
/plugin/moaieditor/scripts/scroll/
Dscroll.js60 moaiEditor.editor.current.flash(flashleft, this.scroll);
61 moaiEditor.preview.flash(flashright, this.scroll);
63 moaiEditor.layout.indicatorScrolling.style.opacity = '0';
65 this.sync.lastScroll = Math.round(moaiEditor.editor.current.scroll.top);
66 moaiEditor.scroll.sync.disabled = false;
118 return moaiEditor.scroll.tools.getRectRelativeToParent(this.element).top;
126 moaiEditor.preview.flash(false, {element:element}); // TODO: Test this condition
165 element.addEventListener('click', function(){ moaiEditor.scroll.onClick(this); });
176 …const img = moaiEditor.createHTML(`<img class="moaied-scroller-icon" src="${baseurl}/icons/sp_aim.…
184 moaiEditor.layout.goRight();
[all …]
Dscroll_sync.js21 … if (this.disabled || moaiEditor.buttons.autoscroll.mode == 'off' || !moaiEditor.layoutReady)
34 const scroll = moaiEditor.editor.current.scroll.top;
52 var matches = moaiEditor.matches.matches;
57 const leftScroll = moaiEditor.editor.current.scroll.top;
60 this.container = moaiEditor.preview.container;
115 } else if (i >= moaiEditor.matches.matches.length) {
117 left = moaiEditor.editor.current.scroll.max;
121 const match = moaiEditor.matches.matches[i];
165 this.lastScroll = moaiEditor.preview.scroll.top;
175 const scroll = moaiEditor.preview.scroll.top;
[all …]
Dscroll_to.js73 moaiEditor.scroll.sync.disabled = true;
75 moaiEditor.layout.indicatorScrolling.style.opacity = '1';
99 moaiEditor.scroll.onScrollEnd();
118 if (moaiEditor.strict)
123 if (moaiEditor.strict)
/plugin/moaieditor/plugins/codemirror/
Dcm_main.js68 … this.settingsWrapper = moaiEditor.createHTML('<div id="moaied__cm_settings_wrapper"></div>');
92 moaiEditor.layout.bottomRight.appendChild(this.settingsWrapper);
94 …this.flashbox = moaiEditor.createHTML('<div id="moaied__codemirror_flashbox" class="moaied-flashbo…
129 this.dirty = moaiEditor.createHTML('<div class="moaied-show-dirty-area"></div>');
156 moaiEditor.matches.recalcScrollPoints();
189 dw_editor.setWrap (moaiEditor.layout.elements.textarea, value);
190 moaiEditor.matches.recalcScrollPoints();
208 …this.flashbox = moaiEditor.createHTML('<div id="moaied__codemirror_flashbox" class="moaied-flashbo…
233 moaiEditor.scroll.sync.onScroll();
250 moaiEditor.matches.recalcScrollPoints();
[all …]
/plugin/moaieditor/templates/
Ddefault.js68 … const link = moaiEditor.createHTML(`<link href="${this.css}" rel="stylesheet" type="text/css"/>`);
90 moaiEditor.enabled.value = 'off';
115 if (moaiEditor.enabled.value == 'on')
116 moaiEditor.startEditor();
129 this.elements.editButtons.appendChild(moaiEditor.start.button);
Dbootstrap3.js49 const button = moaiEditor.start.button;
53 this.elements.editButtons.appendChild(moaiEditor.start.button);
/plugin/moaieditor/scripts/match/
Dmatches.js44 const editor = moaiEditor.editor.current;
85 const editor = moaiEditor.editor.current;
118 moaiEditor.editor.current.removeMatches(match.startline, match.endline);
147 const editor = moaiEditor.editor.current;
163 const editor = moaiEditor.editor.current;
167 var element = moaiEditor.createHTML('<div class="moaied-scrollpoint"></div>');
/plugin/moaieditor/
Dscript.js54 var moaiEditor; variable
56 moaiEditor = new MoaiEditor.Main();

12