Home
last modified time | relevance | path

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

12

/plugin/moaieditor/scripts/
Dlayout.js86 for (let name in moaiEditor.plugins)
87 if (moaiEditor.plugins[name].onSpecificLayout)
88 moaiEditor.plugins[name].onSpecificLayout(mode);
137 moaiEditor.buttons.save.handle.name = 'do[save]';
138 moaiEditor.buttons.cancel.handle.name = 'do[cancel]';
139 moaiEditor.buttons.save.handle.value = '1';
140 moaiEditor.buttons.cancel.handle.value = '1';
141 moaiEditor.buttons.save.handle.setAttribute ("form",'dw__editform');
142 moaiEditor.buttons.cancel.handle.setAttribute("form",'dw__editform');
145moaiEditor.buttons.save.handle.addEventListener("click", function(){ window.onbeforeunload=''; tex…
[all …]
Dlayout_vphone.js40 this.btn_goLeft = moaiEditor.buttons.goLeft;
41 this.btn_goRight = moaiEditor.buttons.goRight;
46 …this.left = moaiEditor.createHTML('<div id="moaied__phone_left"></div>'); // Buttons and…
47 …this.right = moaiEditor.createHTML('<div id="moaied__phone_right"></div>'); // Both panes …
57 …this.leftRow1 = moaiEditor.createHTML('<div id="moaied__phone_left_row1" class="moaied-phone-row">…
58 …this.leftRow2 = moaiEditor.createHTML('<div id="moaied__phone_left_row2" class="moaied-phone-row">…
64 left.appendChild(moaiEditor.buttons.back.handle);
72 …var main = moaiEditor.createHTML('<div id="moaied__phone_left_main"></div>'); // Container for:…
73 var sidebar = moaiEditor.createHTML('<div id="moaied__phone_sidebar"></div>');
86 this.leftButtons = moaiEditor.createHTML('<div id="moaied__phone_left_buttons"></div>');
[all …]
Deditor.js30 this.editors.push( moaiEditor.mirror );
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();
71 moaiEditor.scroll.paste();
73 moaiEditor.dirty.showDirtyArea();
82 moaiEditor.layout.goRight();
84 const value = {soft:'off', off:'soft'}[moaiEditor.editor.linewrap.value];
[all …]
Dtoc.js30 … const container = moaiEditor.createHTML(' <div id="moaied__toc" style="display:none"></div>');
31 …const title = moaiEditor.createHTML(' <label id="moaied__toc_label">Table of contents</label>'…
32 const dropdowns = moaiEditor.createHTML(' <div id="moaied__toc_dropdowns"></div>');
33 const depth = moaiEditor.createHTML('<select id="moaied__toc_depth"></select>');
34 const wrapper = moaiEditor.createHTML(' <div id="moaied__toc_wrapper"></div>');
35 const sections = moaiEditor.createHTML('<select id="moaied__toc_sections"></select>');
36 const dummy = moaiEditor.createHTML('<select id="moaied__toc_dummy"></select>');
56 depth.appendChild(moaiEditor.createHTML('<option value="'+i+'">h'+i+'</option>'));
70 for (let match of moaiEditor.matches.matches)
104 this.sections.appendChild(moaiEditor.createHTML('<option></option>'));
[all …]
Dlayout_desktop.js73 …this.row1 = moaiEditor.createHTML('<div id="moaied__row1"></div>'); // Page lo…
74 …this.row2 = moaiEditor.createHTML('<div id="moaied__row2"></div>'); // Toolbar…
75 …this.paneswrapper = moaiEditor.createHTML('<div id="moaied__panes_wrapper"></div>'); // This di…
76 …this.footer = moaiEditor.createHTML('<div id="moaied__footer"></div>'); // Footer …
91 …this.topleft = moaiEditor.createHTML('<div id="moaied__topleft"></div>'); // Back button…
92 …this.toc = moaiEditor.toc.container; // Table of co…
94 …this.buttons = moaiEditor.createHTML('<div id="moaied__buttons"></div>'); // Editor butt…
100 this.topleft.appendChild(moaiEditor.buttons.back.handle);
128 …this.row2left = moaiEditor.createHTML('<div id="moaied__row2_left" class="moaied-second-to-shrink"…
129 …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…
102 …this.flashbox = moaiEditor.createHTML('<div id="moaied__mirror_flashbox" class="moaied-flashbox"><…
[all …]
Ddraft.js54 this.button = moaiEditor.buttons.save;
55 this.container = moaiEditor.createHTML('<div id="moaied__draft_save_indicator"></div>');
57 this.dot = moaiEditor.createHTML('<div></div>');
68 if (moaiEditor.layoutReady) {
90 if (moaiEditor.layoutReady) {
92 this.dot = moaiEditor.createHTML('<div></div>');
Dhint.js34 const arrow = moaiEditor.icons.ico_arrowright;
35 … const wrapper = moaiEditor.createHTML('<div class="moaied-hint moaied-hint-arrow-right"></div>');
36 const content = moaiEditor.createHTML('<span><i>'+text+'</i>'+arrow+'</span>');
44 const arrow = moaiEditor.icons.ico_arrow_corner_leftdown;
45 …const wrapper = moaiEditor.createHTML('<div class="moaied-hint moaied-hint-arrow-corner-left-down"…
46 const content = moaiEditor.createHTML('<span>'+arrow+'<i>'+text+'</i></span>');
Dajax.js30 if (!moaiEditor.layoutReady)
38 const payload = moaiEditor.dirty.onRequest();
50 moaiEditor.buttons.preview.mode = 'loading';
77 if (!moaiEditor.dirty.onResponse(id, html)) {
92 moaiEditor.buttons.preview.mode = 'normal';
107 moaiEditor.buttons.preview.mode = 'error';
167 if (!moaiEditor.layoutReady)
172 if (moaiEditor.buttons.livepreview.mode == 'on')
173 if (moaiEditor.dirty.state.current.changed)
Dpreview.js28 this.content = moaiEditor.createHTML('<div id="moaied__preview_content"></div>');
31 …this.flashbox = moaiEditor.createHTML('<div id="moaied__preview_flashbox" class="moaied-flashbox">…
49 …this.flashbox = moaiEditor.createHTML('<div id="moaied__preview_flashbox" class="moaied-flashbox">…
52 const rect = moaiEditor.scroll.tools.getRectRelativeToParent(data.element);
82 return moaiEditor.scroll.tools.getMaxScrollY(this.outer.container);
Dhighlight_header.js18 const matcher = moaiEditor.matches.matcher;
41 var inner = moaiEditor.createHTML('<span class="moaied-syntax-inner"></span>');
43 var box = moaiEditor.createHTML('<span class="moaied-syntax-box">'+type+'</span>');
44 var outer = moaiEditor.createHTML('<span class="moaied-syntax-header '+type+'"></span>');
Dstart.js22 …const png = moaiEditor.createHTML('<img id="moaied-start-png" src="lib/plugins/moaieditor/icons/st…
36 …const button = moaiEditor.createHTML('<button id="moaied-start-button" type="submit">&nbsp;'+html+…
43 moaiEditor.startEditor(); // Start the editor now
Ddirty.js53 if (this.firstPreview || moaiEditor.buttons.partialpreview.mode == 'off') {
57 text = moaiEditor.editor.current.text;
103 const lines = moaiEditor.editor.current.watcher.lines;
138 moaiEditor.scroll.sync.disabled = true;
165 moaiEditor.matches.update(top, bottom);
168 moaiEditor.toc.update();
177 moaiEditor.scroll.sync.disabled = false;
291 moaiEditor.ajax.timer.reset();
304 for (let match of moaiEditor.matches.matches) {
350 const editor = moaiEditor.editor.current;
Dbuttons.js29 onClick: moaiEditor.ajax.onPreviewBtnClick.bind(moaiEditor.ajax),
281 moaiEditor.buttons.onclick_panes();
285 moaiEditor.layout.desktop.onClickPanesBtn();
299 var left = moaiEditor.layout.editpane;
300 var right = moaiEditor.layout.preview;
Dwatcher.js49 if (!moaiEditor.layoutReady)
67 return moaiEditor.layout.textarea.value.split("\n");
130 moaiEditor.buttons.styleExitButtons();
Dbutton.js68 this.handle = moaiEditor.createHTML(html);
119 icon = moaiEditor.icons?.[state?.icon ?? this.icon];
/plugin/moaieditor/plugins/captcha/
Dcaptcha.js36 const original_onclick_save = moaiEditor.buttons.save.__onClick;
37 moaiEditor.buttons.save.__onClick = function (event) { method
40 const self = moaiEditor.plugins.captcha;
43 return original_onclick_save.bind(moaiEditor.buttons.save, event);
48 moaiEditor.dokuMessage(msg, 2); // Show message
50moaiEditor.layout.goLeft(); // In mobile mode scroll to the left side to show the …
58 moaiEditor.layout.desktop.footerLeft.appendChild(this.wrapper);
63 const element = moaiEditor.createHTML('<div><label>Captcha</label></div>');
/plugin/moaieditor/scripts/scroll/
Dscroll.js61 moaiEditor.editor.current.flash(flashleft, this.scroll);
62 moaiEditor.preview.flash(flashright, this.scroll);
64 moaiEditor.layout.indicatorScrolling.style.opacity = '0';
66 this.sync.lastScroll = Math.round(moaiEditor.editor.current.scroll.top);
67 moaiEditor.scroll.sync.disabled = false;
119 return moaiEditor.scroll.tools.getRectRelativeToParent(this.element).top;
127 moaiEditor.preview.flash(false, {element:element}); // TODO: Test this condition
163 element.addEventListener('click', function(){ moaiEditor.scroll.onClick(this); });
173 …const img = moaiEditor.createHTML('<img class="moaied-scroller-icon" src="lib/plugins/moaieditor/i…
181 moaiEditor.layout.goRight();
[all …]
Dscroll_sync.js22 … if (this.disabled || moaiEditor.buttons.autoscroll.mode == 'off' || !moaiEditor.layoutReady)
35 const scroll = moaiEditor.editor.current.scroll.top;
53 var matches = moaiEditor.matches.matches;
58 const leftScroll = moaiEditor.editor.current.scroll.top;
61 this.container = moaiEditor.preview.container;
116 } else if (i >= moaiEditor.matches.matches.length) {
118 left = moaiEditor.editor.current.scroll.max;
122 const match = moaiEditor.matches.matches[i];
166 this.lastScroll = moaiEditor.preview.scroll.top;
176 const scroll = moaiEditor.preview.scroll.top;
[all …]
Dscroll_to.js67 moaiEditor.scroll.sync.disabled = true;
69 moaiEditor.layout.indicatorScrolling.style.opacity = '1';
93 moaiEditor.scroll.onScrollEnd();
112 if (moaiEditor.strict)
117 if (moaiEditor.strict)
/plugin/moaieditor/plugins/codemirror/
Dcm_main.js59 … this.settingsWrapper = moaiEditor.createHTML('<div id="moaied__cm_settings_wrapper"></div>');
83 moaiEditor.layout.bottomRight.appendChild(this.settingsWrapper);
85 …this.flashbox = moaiEditor.createHTML('<div id="moaied__codemirror_flashbox" class="moaied-flashbo…
120 this.dirty = moaiEditor.createHTML('<div class="moaied-show-dirty-area"></div>');
147 moaiEditor.matches.recalcScrollPoints();
180 dw_editor.setWrap (moaiEditor.layout.elements.textarea, value);
181 moaiEditor.matches.recalcScrollPoints();
199 …this.flashbox = moaiEditor.createHTML('<div id="moaied__codemirror_flashbox" class="moaied-flashbo…
224 moaiEditor.scroll.sync.onScroll();
243 moaiEditor.matches.recalcScrollPoints();
[all …]
/plugin/moaieditor/scripts/match/
Dmatches.js45 const editor = moaiEditor.editor.current;
86 const editor = moaiEditor.editor.current;
119 moaiEditor.editor.current.removeMatches(match.startline, match.endline);
148 const editor = moaiEditor.editor.current;
164 const editor = moaiEditor.editor.current;
168 var element = moaiEditor.createHTML('<div class="moaied-scrollpoint"></div>');
/plugin/moaieditor/templates/
Ddefault.js77 moaiEditor.enabled.value = 'off';
102 if (moaiEditor.enabled.value == 'on')
103 moaiEditor.startEditor();
116 this.elements.editButtons.appendChild(moaiEditor.start.button);
Dbootstrap3.js37 const button = moaiEditor.start.button;
41 this.elements.editButtons.appendChild(moaiEditor.start.button);
/plugin/moaieditor/
Dscript.js68 var moaiEditor; variable
70 moaiEditor = new MoaiEditor.Main();

12