on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
526 lines (525 loc) • 17.7 kB
JavaScript
/*! on-codemerge v1.3.1 @author Pavel Kuzmin @license MIT @homepage https://s00d.github.io/on-codemerge/ @repository git+https://github.com/s00d/on-codemerge.git Copyright (c) 2026 Pavel Kuzmin - Built on 2026-07-02T13:39:17.947Z */
const e = "Jan", t = "Feb", o = "Mar", r = "Apr", n = "May", a = "Jun", l = "Jul", i = "Aug", s = "Sep", d = "Oct", c = "Nov", p = "Dec", m = "Typography", C = "Paragraph", u = "Blockquote", g = "Preformatted", y = "Updated", T = "New", S = "Templates", h = "Name", w = "Content", b = "Bold", E = "Underline", D = "Strikethrough", v = "Italic", A = "Responsive", f = "Series", L = "Total", k = "Label", I = "Value", F = "Color", x = "Format", B = "X", R = "Y", M = "Size", P = "URL", H = "Anchor", U = "Title", V = "Copy", z = "Save", N = "View", W = "Duplicate", O = "Cancel", q = "Edit", Y = "Delete", G = "Remove", J = "Language", X = "Export", j = "Confirm", K = "browse", Z = "Uploading", _ = "Words", Q = "Characters", $ = "Sentences", ee = "Paragraphs", te = "Undo", oe = "Redo", re = "Restore", ne = "Footnotes", ae = "Insert", le = "min", ie = "Legend", se = "Apply", de = "Theme", ce = "Dimensions", pe = "Width", me = "Borders", Ce = "Colors", ue = "Effects", ge = "Breakpoint", ye = "Alignment", Te = "Padding", Se = "Height", he = "Split", we = "Horizontally", be = "Vertically", Ee = "Merge", De = "Move", ve = "Up", Ae = "Down", fe = "Settings", Le = "Cut", ke = "Paste", Ie = "Sort", Fe = "Properties", xe = "Cells", Be = "Mobile", Re = "Tablet", Me = "Desktop", Pe = "Large", He = "Ultra", Ue = "Fluid", Ve = "Timer", ze = "General", Ne = "days", We = "hours", Oe = "sec", qe = "Until", Ye = "Create", Ge = "Update", Je = "Actions", Xe = "Ascending", je = "Attendees", Ke = "Calendar", Ze = "Category", _e = "Clear", Qe = "Collaboration", $e = "Data", et = "Descending", tt = "Description", ot = "Event", rt = "High", nt = "Import", at = "Location", lt = "Low", it = "Medium", st = "Orientation", dt = "Priority", ct = "Selection", pt = "Tags", mt = "Time", Ct = "Tips", ut = {
"New Block": "New Block",
"Split Horizontally": "Split Horizontally",
"Split Vertically": "Split Vertically",
"Move Up": "Move Up",
"Move Down": "Move Down",
"Block 1": "Block 1",
"Block 2": "Block 2",
"Series 1": "Series 1",
"No valid data points to display": "No valid data points to display",
Jan: e,
Feb: t,
Mar: o,
Apr: r,
May: n,
Jun: a,
Jul: l,
Aug: i,
Sep: s,
Oct: d,
Nov: c,
Dec: p,
"Keyboard Shortcuts": "Keyboard Shortcuts",
"Insert Table": "Insert Table",
"Add Row Above": "Add Row Above",
"Add Row Below": "Add Row Below",
"Add Column Left": "Add Column Left",
"Add Column Right": "Add Column Right",
"Delete Row": "Delete Row",
"Delete Column": "Delete Column",
"Delete Table": "Delete Table",
"Merge Cells": "Merge Cells",
"Split Cell": "Split Cell",
"Set Cell Border": "Set Cell Border",
"Include header row": "Include header row",
Typography: m,
"Typography Styles": "Typography Styles",
"Clear Formatting": "Clear Formatting",
"Heading 1": "Heading 1",
"Heading 2": "Updated 2",
"Heading 3": "Heading 3",
"Heading 4": "Heading 4",
Paragraph: C,
Blockquote: u,
Preformatted: g,
"Horizontal Line": "Horizontal Line",
Updated: y,
"Insert Video": "Insert Video",
"Are you sure you want to delete this template?": "Are you sure you want to delete this template?",
New: T,
Templates: S,
Name: h,
Content: w,
"Insert YouTube Video": "Insert YouTube Video",
"YouTube Video URL": "YouTube Video URL",
Bold: b,
Underline: E,
Strikethrough: D,
Italic: v,
"Responsive View": "Responsive View",
"Mobile View": "Mobile View",
"Tablet View": "Tablet View",
"Desktop View": "Desktop View",
"Large Desktop View": "Large Desktop View",
"Ultra Wide View": "Ultra Wide View",
Responsive: A,
"Select a viewport size to preview your content at different screen widths.<br>Use the resize handles in responsive mode to adjust the width manually.": "Select a viewport size to preview your content at different screen widths.<br>Use the resize handles in responsive mode to adjust the width manually.",
Series: f,
Total: L,
"Data Points": "Data Points",
"Add Point": "Add Point",
Label: k,
Value: I,
Color: F,
Format: x,
"Delete Point": "Delete Point",
"Series Data": "Series Data",
"Add Series": "Add Series",
"Series name": "Series name",
"Insert Code Block": "Insert Code Block",
"Copy to clipboard": "Copy to clipboard",
"+ Add Data Point": "+ Add Data Point",
X: B,
Y: R,
"Bullet List": "Bullet List",
"Numbered List": "Numbered List",
Size: M,
URL: P,
Anchor: H,
Title: U,
'Open in new tab (target="_blank")': 'Open in new tab (target="_blank")',
'Add rel="nofollow"': 'Add rel="nofollow"',
"Insert Chart": "Insert Chart",
"Enter your code here...": "Enter your code here...",
"Copied!": "Copied!",
Copy: V,
Save: z,
View: N,
Duplicate: W,
Cancel: O,
Edit: q,
Delete: Y,
Remove: G,
Language: J,
Export: X,
Error: "Error",
"Insert Link": "Insert Link",
"Align Left": "Align Left",
"Align Center": "Align Center",
"Align Right": "Align Right",
"Insert Image": "Insert Image",
"Font Size": "Font Size",
"Font Family": "Font Family",
"Font Settings": "Font Settings",
"Upload File": "Upload File",
"Plain Text": "Plain Text",
"Markdown File": "Markdown File",
"HTML File": "HTML File",
"Use comments to provide feedback or suggestions.": "Use comments to provide feedback or suggestions.",
"Delete Comment": "Delete Comment",
"Please select some text to comment on": "Please select some text to comment on",
"Failed to insert comment. Please try selecting a simpler text range.": "Failed to insert comment. Please try selecting a simpler text range.",
"Insert Comment": "Insert Comment",
"Recent Colors": "Recent Colors",
Confirm: j,
"Background Color": "Background Color",
"Text Color": "Text Color",
"Drag and drop your file here, or": "Drag and drop your file here, or",
browse: K,
"Maximum file size: ": "Maximum file size: ",
Uploading: Z,
"File size exceeds 10MB limit": "File size exceeds {{max}} limit",
"Upload failed. Please try again.": "Upload failed. Please try again.",
Words: _,
Characters: Q,
"Characters (without spaces)": "Characters (without spaces)",
Sentences: $,
Paragraphs: ee,
"HTML Source": "HTML Source",
"View HTML": "View HTML",
Undo: te,
Redo: oe,
Restore: re,
"Initial version": "Initial version",
"Changes from previous version:": "Changes from previous version:",
"Edit History": "Edit History",
"View History": "View History",
"Reading time": "Reading time",
"Insert Footnote": "Insert Footnote",
Footnotes: ne,
"Add Footnote": "Add Footnote",
"Add explanatory or reference text that will appear at the bottom of the document": "Add explanatory or reference text that will appear at the bottom of the document",
Insert: ae,
min: le,
"Export PNG": "Export PNG",
"Select template...": "Select template...",
"Bar: Sales": "Bar: Sales",
"Pie: Expenses": "Pie: Expenses",
"Doughnut: Browsers": "Doughnut: Browsers",
"Line: Visitors": "Line: Visitors",
"Chart Title": "Chart Title",
"X Axis Label": "X Axis Label",
"Y Axis Label": "Y Axis Label",
Legend: ie,
"Show Legend": "Show Legend",
"Hide Legend": "Hide Legend",
"Table Properties": "Table Properties",
Apply: se,
"Style & Theme": "Style & Theme",
"Table Style": "Table Style",
Theme: de,
Dimensions: ce,
Width: pe,
"Cell Padding": "Cell Padding",
Borders: me,
"Border Style": "Border Style",
"Border Width": "Border Width",
"Border Color": "Border Color",
Colors: Ce,
"Header Background": "Header Background",
"Header Text Color": "Header Text Color",
Effects: ue,
"Zebra Stripe": "Zebra Stripe",
"Hover Effect": "Hover Effect",
"Responsive Settings": "Responsive Settings",
Breakpoint: ge,
"Enable Horizontal Scroll": "Enable Horizontal Scroll",
"Enable Touch Support": "Enable Touch Support",
"Enable Cards on Mobile": "Enable Cards on Mobile",
"Cell Formatting": "Cell Formatting",
"Text Formatting": "Text Formatting",
"Font Weight": "Font Weight",
"Font Style": "Font Style",
"Text Decoration": "Text Decoration",
Alignment: ye,
"Horizontal Alignment": "Horizontal Alignment",
"Vertical Alignment": "Vertical Alignment",
Padding: Te,
Height: Se,
"Insert Lazy Table": "Insert Lazy Table",
"Text Block": "Text Block",
"Container Block": "Container Block",
"Split Container": "Split Container",
Split: he,
Horizontally: we,
Vertically: be,
Merge: Ee,
Move: De,
Up: ve,
Down: Ae,
Settings: fe,
"Make Editable": "Make Editable",
"Make Read-only": "Make Read-only",
"Insert Block": "Insert Block",
"Clear Cell": "Clear Cell",
"Delete Cell": "Delete Cell",
"Select All": "Select All",
Cut: Le,
Paste: ke,
"Auto Size": "Auto Size",
Sort: Ie,
"Sort Ascending": "Sort Ascending",
"Sort Descending": "Sort Descending",
"Export Table": "Export Table",
"Import Table": "Import Table",
Properties: Fe,
Cells: xe,
Mobile: Be,
Tablet: Re,
Desktop: Me,
Large: Pe,
Ultra: He,
Fluid: Ue,
"Resize editor width": "Resize editor width",
"Edit Lazy Table": "Edit Lazy Table",
"Fill Table": "Fill Table",
"Fill Table with Data": "Fill Table with Data",
"Update Table": "Update Table",
Timer: Ve,
General: ze,
days: Ne,
hours: We,
sec: Oe,
"Time expired": "Time expired",
Until: qe,
"Edit Timer": "Edit Timer",
"Copy Timer": "Copy Timer",
"Export Timer": "Export Timer",
"Import Timer": "Import Timer",
"Delete Timer": "Delete Timer",
"Timer copied successfully": "Timer copied successfully",
"Failed to copy timer": "Failed to copy timer",
"Export failed": "Export failed",
"Timer imported successfully": "Timer imported successfully",
"Import failed": "Import failed",
"Title is required": "Title is required",
"Target date is required": "Target date is required",
"Target time is required": "Target time is required",
"Invalid date/time format": "Invalid date/time format",
"Enter timer title": "Enter timer title",
"Enter timer description": "Enter timer description",
"Enter category": "Enter category",
"Enter tags separated by commas": "Enter tags separated by commas",
"New Timer": "New Timer",
Create: Ye,
Update: Ge,
"No timers found": "No timers found",
"Create your first timer to get started": "Create your first timer to get started",
"Are you sure you want to delete this timer?": "Are you sure you want to delete this timer?",
Actions: Je,
"Add Column": "Add Column",
"Add Event": "Add Event",
"Add Row": "Add Row",
"All day event": "All day event",
"Are you sure you want to delete this calendar?": "Are you sure you want to delete this calendar?",
Ascending: Xe,
Attendees: je,
"Auto Fit": "Auto Fit",
"Bar/Area Mode": "Bar/Area Mode",
"Block Style": "Block Style",
"Block Style Editor": "Block Style Editor",
"CSS Classes": "CSS Classes",
"CSS Selector (for HTML)": "CSS Selector (for HTML)",
"CSV Delimiter": "CSV Delimiter",
Calendar: Ke,
"Calendar Title": "Calendar Title",
"Calendar copied successfully": "Calendar copied successfully",
"Calendar imported successfully": "Calendar imported successfully",
Category: Ze,
"Cell Operations": "Cell Operations",
"Chart Type": "Chart Type",
Clear: _e,
"Clear Table": "Clear Table",
"Clipboard Operations": "Clipboard Operations",
Collaboration: Qe,
"Copy Calendar": "Copy Calendar",
"Copy Cell": "Copy Cell",
"Copy Event": "Copy Event",
"Copy Table": "Copy Table",
"Create your first calendar to get started": "Create your first calendar to get started",
"Current locale - Click to change": "Current locale - Click to change",
"Current viewport - Click to change": "Current viewport - Click to change",
"Cut Cell": "Cut Cell",
Data: $e,
"Data URL": "Data URL",
Date: "Date",
"Default Colors": "Default Colors",
"Delete Calendar": "Delete Calendar",
"Delete Elements": "Delete Elements",
"Delete Event": "Delete Event",
Descending: et,
Description: tt,
"Display Settings": "Display Settings",
"Duplicated Block": "Duplicated Block",
"Duration (minutes)": "Duration (minutes)",
"Edit Calendar": "Edit Calendar",
"Edit Event": "Edit Event",
"Enter X axis label...": "Enter X axis label...",
"Enter Y axis label...": "Enter Y axis label...",
"Enter attendees (comma separated)": "Enter attendees (comma separated)",
"Enter calendar description": "Enter calendar description",
"Enter calendar title": "Enter calendar title",
"Enter chart title...": "Enter chart title...",
"Enter event description": "Enter event description",
"Enter event location": "Enter event location",
"Enter event title": "Enter event title",
"Enter tags (comma separated)": "Enter tags (comma separated)",
Event: ot,
"Event copied successfully": "Event copied successfully",
"Export Calendar": "Export Calendar",
"Export as PNG": "Export as PNG",
"Failed to copy calendar": "Failed to copy calendar",
"Failed to copy event": "Failed to copy event",
"First row contains headers": "First row contains headers",
"Fluid width": "Fluid width",
"Format Cell": "Format Cell",
High: rt,
Import: nt,
"Import Calendar": "Import Calendar",
"Import Type": "Import Type",
"Import/Export": "Import/Export",
"Inline Styles": "Inline Styles",
"Insert Cell": "Insert Cell",
"Insert Cell Above": "Insert Cell Above",
"Insert Cell Below": "Insert Cell Below",
"Insert Cell Left": "Insert Cell Left",
"Insert Cell Right": "Insert Cell Right",
"Insert Math": "Insert Math",
"Language Settings": "Language Settings",
"Large Desktop": "Large Desktop",
"Large desktop view": "Large desktop view",
"Line Height": "Line Height",
Location: at,
Low: lt,
Medium: it,
"Merge Horizontally": "Merge Horizontally",
"Merge Vertically": "Merge Vertically",
"New Calendar": "New Calendar",
"New Template": "New Template",
"No calendars found": "No calendars found",
"No reminder": "No reminder",
"Note: Width is disabled when Horizontal Scroll is enabled": "Note: Width is disabled when Horizontal Scroll is enabled",
Orientation: st,
"Paste Cell": "Paste Cell",
"Please enter a valid URL": "Please enter a valid URL",
"Print / PDF File": "Print / PDF File",
Priority: dt,
"Reminder (minutes before)": "Reminder (minutes before)",
"Resize Columns": "Resize Columns",
"Search shortcuts...": "Search shortcuts...",
"Select Column": "Select Column",
"Select Elements": "Select Elements",
"Select Row": "Select Row",
"Select Viewport": "Select Viewport",
"Select category": "Select category",
Selection: ct,
"Show Grid": "Show Grid",
"Smartphone view": "Smartphone view",
"Sort Table": "Sort Table",
"Spell Check": "Spell Check",
"Standard desktop": "Standard desktop",
"Table ID (optional)": "Table ID (optional)",
"Table Management": "Table Management",
"Table Operations": "Table Operations",
"Table Tools": "Table Tools",
"Tablet view": "Tablet view",
Tags: pt,
"Tags (comma separated)": "Tags (comma separated)",
"Target Date": "Target Date",
"Target Time": "Target Time",
Time: mt,
Tips: Ct,
"Ultra Wide": "Ultra Wide",
"Ultra wide screen": "Ultra wide screen",
"• Responsive mode allows manual resizing": "• Responsive mode allows manual resizing",
"• Tables adapt automatically to viewport size": "• Tables adapt automatically to viewport size",
"• Use hotkeys for quick switching": "• Use hotkeys for quick switching",
"• Viewport state is saved automatically": "• Viewport state is saved automatically"
};
export {
Je as Actions,
ye as Alignment,
H as Anchor,
se as Apply,
r as Apr,
Xe as Ascending,
je as Attendees,
i as Aug,
u as Blockquote,
b as Bold,
me as Borders,
ge as Breakpoint,
Ke as Calendar,
O as Cancel,
Ze as Category,
xe as Cells,
Q as Characters,
_e as Clear,
Qe as Collaboration,
F as Color,
Ce as Colors,
j as Confirm,
w as Content,
V as Copy,
Ye as Create,
Le as Cut,
$e as Data,
p as Dec,
Y as Delete,
et as Descending,
tt as Description,
Me as Desktop,
ce as Dimensions,
Ae as Down,
W as Duplicate,
q as Edit,
ue as Effects,
ot as Event,
X as Export,
t as Feb,
Ue as Fluid,
ne as Footnotes,
x as Format,
ze as General,
Se as Height,
rt as High,
we as Horizontally,
nt as Import,
ae as Insert,
v as Italic,
e as Jan,
l as Jul,
a as Jun,
k as Label,
J as Language,
Pe as Large,
ie as Legend,
at as Location,
lt as Low,
o as Mar,
n as May,
it as Medium,
Ee as Merge,
Be as Mobile,
De as Move,
h as Name,
T as New,
c as Nov,
d as Oct,
st as Orientation,
Te as Padding,
C as Paragraph,
ee as Paragraphs,
ke as Paste,
g as Preformatted,
dt as Priority,
Fe as Properties,
oe as Redo,
G as Remove,
A as Responsive,
re as Restore,
z as Save,
ct as Selection,
$ as Sentences,
s as Sep,
f as Series,
fe as Settings,
M as Size,
Ie as Sort,
he as Split,
D as Strikethrough,
Re as Tablet,
pt as Tags,
S as Templates,
de as Theme,
mt as Time,
Ve as Timer,
Ct as Tips,
U as Title,
L as Total,
m as Typography,
P as URL,
He as Ultra,
E as Underline,
te as Undo,
qe as Until,
ve as Up,
Ge as Update,
y as Updated,
Z as Uploading,
I as Value,
be as Vertically,
N as View,
pe as Width,
_ as Words,
B as X,
R as Y,
K as browse,
Ne as days,
ut as default,
We as hours,
le as min,
Oe as sec
};