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
3 lines (2 loc) • 16.1 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 */
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});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",u="Paragraph",g="Blockquote",C="Preformatted",y="Updated",T="New",S="Templates",h="Name",b="Content",w="Bold",E="Underline",D="Strikethrough",v="Italic",A="Responsive",f="Series",L="Total",k="Label",I="Value",F="Color",B="Format",M="X",P="Y",R="Size",x="URL",U="Anchor",H="Title",V="Copy",z="Save",N="View",W="Duplicate",O="Cancel",q="Edit",Y="Delete",G="Remove",J="Language",X="Export",_="Confirm",j="browse",K="Uploading",Z="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",ue="Colors",ge="Effects",Ce="Breakpoint",ye="Alignment",Te="Padding",Se="Height",he="Split",be="Horizontally",we="Vertically",Ee="Merge",De="Move",ve="Up",Ae="Down",fe="Settings",Le="Cut",ke="Paste",Ie="Sort",Fe="Properties",Be="Cells",Me="Mobile",Pe="Tablet",Re="Desktop",xe="Large",Ue="Ultra",He="Fluid",Ve="Timer",ze="General",Ne="days",We="hours",Oe="sec",qe="Until",Ye="Create",Ge="Update",Je="Actions",Xe="Ascending",_e="Attendees",je="Calendar",Ke="Category",Ze="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",ut="Tips",gt={"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:u,Blockquote:g,Preformatted:C,"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:b,"Insert YouTube Video":"Insert YouTube Video","YouTube Video URL":"YouTube Video URL",Bold:w,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:B,"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:M,Y:P,"Bullet List":"Bullet List","Numbered List":"Numbered List",Size:R,URL:x,Anchor:U,Title:H,'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:_,"Background Color":"Background Color","Text Color":"Text Color","Drag and drop your file here, or":"Drag and drop your file here, or",browse:j,"Maximum file size: ":"Maximum file size: ",Uploading:K,"File size exceeds 10MB limit":"File size exceeds {{max}} limit","Upload failed. Please try again.":"Upload failed. Please try again.",Words:Z,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:ue,"Header Background":"Header Background","Header Text Color":"Header Text Color",Effects:ge,"Zebra Stripe":"Zebra Stripe","Hover Effect":"Hover Effect","Responsive Settings":"Responsive Settings",Breakpoint:Ce,"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:be,Vertically:we,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:Be,Mobile:Me,Tablet:Pe,Desktop:Re,Large:xe,Ultra:Ue,Fluid:He,"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:_e,"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:je,"Calendar Title":"Calendar Title","Calendar copied successfully":"Calendar copied successfully","Calendar imported successfully":"Calendar imported successfully",Category:Ke,"Cell Operations":"Cell Operations","Chart Type":"Chart Type",Clear:Ze,"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:ut,"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"};exports.Actions=Je;exports.Alignment=ye;exports.Anchor=U;exports.Apply=se;exports.Apr=r;exports.Ascending=Xe;exports.Attendees=_e;exports.Aug=i;exports.Blockquote=g;exports.Bold=w;exports.Borders=me;exports.Breakpoint=Ce;exports.Calendar=je;exports.Cancel=O;exports.Category=Ke;exports.Cells=Be;exports.Characters=Q;exports.Clear=Ze;exports.Collaboration=Qe;exports.Color=F;exports.Colors=ue;exports.Confirm=_;exports.Content=b;exports.Copy=V;exports.Create=Ye;exports.Cut=Le;exports.Data=$e;exports.Dec=p;exports.Delete=Y;exports.Descending=et;exports.Description=tt;exports.Desktop=Re;exports.Dimensions=ce;exports.Down=Ae;exports.Duplicate=W;exports.Edit=q;exports.Effects=ge;exports.Event=ot;exports.Export=X;exports.Feb=t;exports.Fluid=He;exports.Footnotes=ne;exports.Format=B;exports.General=ze;exports.Height=Se;exports.High=rt;exports.Horizontally=be;exports.Import=nt;exports.Insert=ae;exports.Italic=v;exports.Jan=e;exports.Jul=l;exports.Jun=a;exports.Label=k;exports.Language=J;exports.Large=xe;exports.Legend=ie;exports.Location=at;exports.Low=lt;exports.Mar=o;exports.May=n;exports.Medium=it;exports.Merge=Ee;exports.Mobile=Me;exports.Move=De;exports.Name=h;exports.New=T;exports.Nov=c;exports.Oct=d;exports.Orientation=st;exports.Padding=Te;exports.Paragraph=u;exports.Paragraphs=ee;exports.Paste=ke;exports.Preformatted=C;exports.Priority=dt;exports.Properties=Fe;exports.Redo=oe;exports.Remove=G;exports.Responsive=A;exports.Restore=re;exports.Save=z;exports.Selection=ct;exports.Sentences=$;exports.Sep=s;exports.Series=f;exports.Settings=fe;exports.Size=R;exports.Sort=Ie;exports.Split=he;exports.Strikethrough=D;exports.Tablet=Pe;exports.Tags=pt;exports.Templates=S;exports.Theme=de;exports.Time=mt;exports.Timer=Ve;exports.Tips=ut;exports.Title=H;exports.Total=L;exports.Typography=m;exports.URL=x;exports.Ultra=Ue;exports.Underline=E;exports.Undo=te;exports.Until=qe;exports.Up=ve;exports.Update=Ge;exports.Updated=y;exports.Uploading=K;exports.Value=I;exports.Vertically=we;exports.View=N;exports.Width=pe;exports.Words=Z;exports.X=M;exports.Y=P;exports.browse=j;exports.days=Ne;exports.default=gt;exports.hours=We;exports.min=le;exports.sec=Oe;