Dee Editor v2.6.3.2 — Multilingual (i18n) · Excel drawing objects (pictures, SmartArt, charts) · context menu improvements
Released · Notice
New features
- Multilingual (i18n) support — the
language option — the entire editor UI follows the language setting: menu bar, ribbon, toolbar tooltips, every plugin dialog (table, shape, image, link, find, video, emoji, document background, forbidden-word check), and the import dialogs (Word, HWPX, XLSX, PPTX, Markdown) — 588 keys each for ko and en. Korean and English are built into the core, so no extra file is loaded.
new WebEditor('#editor', { language: 'en' }) - Runtime switching —
setLanguage() and the languagechange event — body content, caret position, modified flag, and read-only state are preserved, so switching mid-edit is safe. Switching is per instance; an unregistered language code is ignored and reported through onError. - Adding languages and overriding strings —
WebEditor.registerLocale() — add any language ('ja' and so on) with no core changes, or use { merge: true } to change only selected strings to your product's terminology. Missing keys fall back to Korean, so partial packs are safe. - TypeScript types — the
language option, setLanguage() · getLanguage() · t(), the languagechange event, registerLocale(), and the WebEditorLanguage · WebEditorLocalePack types are all in dist/webeditor.d.ts.
Backward compatibility
- Without an explicit
language, it is pinned to 'ko' and renders exactly as previous versions did. Browser-language detection requires an explicit 'auto' — an opt-in policy so that upgrading alone never flips a Korean user on an English OS to an English UI.
Out of scope
- Body content, date/time insertion formats (Korean conventions), the trial modal (which follows
licenseLang), and the demo and manual pages themselves are not translated. No Japanese or Chinese packs ship by default; add them with registerLocale().
Excel (XLSX) import — drawing objects
Objects floating over a sheet were dropped entirely, with no warning. Tables and cell formatting converted fine, but pictures, shapes, SmartArt, and charts disappeared and users had no way to know.
- Pictures — images in
xl/media become base64 <img> elements, at their display size (EMU to px), scaled down proportionally when they exceed maxTableWidth. - Shapes — text inside a shape is preserved as a paragraph.
- SmartArt, rendered as approximate SVG — the laid-out result (
diagrams/drawingN.xml) is carried over with its shapes, coordinates, rotation, and theme colours. Nine shape geometries are mapped. - Charts, rendered as SVG — pie, doughnut, bar, line, and area, including the chart title, axis titles, value-axis ticks, and horizontal gridlines (honouring
autoTitleDeleted and the axis delete flag). Files without a value cache are resolved by reading the <c:f> range straight from the workbook. - Objects that cannot be displayed (unsupported chart types, form controls, empty shapes) are counted by kind and reported as warnings. Set
images: false to turn drawing objects off entirely. - Drawing objects float over cells rather than belonging to one, so they are placed below the table, in order.
The chart renderer was promoted out of the PPTX engine into a shared module now used by both XLSX and PPTX; PPTX output is unchanged.
Not supported: scatter, bubble, radar, stock, combo, and 3D charts, secondary axes, and logarithmic scales. Area charts are approximated as lines.
Context menu
- Hyperlink added — select text and right-click to add a link straight away. It is enabled only when there is a text range, and the item does not appear if the
link plugin is not loaded. - Moved into the core — the context menu lived inside the table plugin, so removing table from
plugins made the whole menu disappear. Cut, copy, paste, and select-all are basic editing features unrelated to tables, so they now belong to the core. The table-specific menu and its behaviour are unchanged.
Behaviour change — privacy detection now works without configuration
The shield icon (profanity / privacy check) is always present in the toolbar, yet without a privacy option it always reported “Nothing detected”. Following the principle that an icon present in the toolbar must work out of the box, privacy detection is now on by default. The patterns are built into the core, so no project-specific data is required.
privacy omitted → all types are checked (changed — previously nothing was checked)privacy: { detect: ['ssn'] } → only the listed typesprivacy: false · privacy: { detect: [] } → no checking (explicit opt-out)
validate(), maskSensitiveData() and the review dialog all follow the same rule.
⚠️ If you call validate() before saving — with no privacy option the result used to be always empty, and now personal data is reported. If your code blocks saving on a non-empty result, opt out with privacy: false or name the types you want.
Profanity has no default list — word lists differ per project and language, so the core cannot pick one. Pass profanity: { words: […] }, or use the global config file described below, to enable it.
New — manage the banned-word list in a separate config file
The list previously had to be passed through profanity.words everywhere an editor is created, so a site with several screens ended up with the same list scattered across pages. A global setting now works the same way the licence key does.
- One config file for the whole site — put the list on
window.WebEditorBannedWords and load that file before the core bundle. Individual pages then need no profanity option at all. A sample file, demo/banned-words.js, ships with the package. - A data file (URL) works too — give a file address instead of an array and it is fetched, so an operations team can edit the list without touching code. Three formats are accepted: a JSON array,
{ words: [...] }, or plain text separated by newlines or commas. In the text format, lines starting with # or // are treated as comments, and surrounding whitespace and duplicates (case-insensitive) are cleaned up automatically. If the file cannot be read, onError('profanity.load') is raised and the editor continues with an empty list. - Precedence —
options.profanity.words > window.WebEditorBannedWords. A screen that needs a different list just passes the option. reloadBannedWords() added — the list is read once, on the first check, and cached; call this after changing it at runtime.- Applied to the demos — both the Korean and English board write pages (
write.html) now read the list from this config file. The English demo had it hard-coded, which no longer matched the structure the manual describes.
⚠️ Behaviour change — the profanity check previously ran only when a profanity option object was present. It now keys off whether a list exists, so the global config file alone is enough. Passing an empty array (profanity: { words: [] }) ignores the global setting and disables the check.
New — pre-submit check guardBeforeSubmit()
Until now the profanity / privacy check only ran when the user clicked the shield icon. Skip the click and the post went up as-is. The content can now be checked right before a post is submitted, with anything found shown in a banner above the body — and the submit can be blocked.
The editor cannot know when a post is submitted (the submit button belongs to your page), so this is a method you call just before saving. If you never call it, nothing about the existing behaviour changes.
async function savePost() {
const r = await editor.guardBeforeSubmit();
if (!r.ok) return; // blocked — the banner is already up
const body = editor.getHTML(); // read after the check; masking may have changed it
}
- Banner above the body — lists each entry by kind and value. Clicking an entry jumps to that spot in the body and selects the text. The banner is drawn outside the body, so it never appears in
getHTML() and cannot pollute what you save. - Choose how it is shown —
notify: 'banner' (default) · 'notice' (toast only) · 'both' · false. - Choose whether it blocks —
block: true (default) returns ok:false so you can stop the submit; false only warns and lets it through. Actually stopping the save remains the caller's job. - Masking after confirmation — [Review & mask] opens the existing results dialog, where entries are masked one by one. The check then runs again and the banner disappears once nothing is left. Nothing is masked automatically, so text never changes behind the author's back (
mask: 'off' hides the button). - Scope —
scope: 'all' (default) · 'profanity' · 'privacy'. The shield icon's manual check is unaffected. guard: false skips the check and always passes. clearGuardNotice() removes the banner and notice, and Esc dismisses it too.
Wired into the Save button of both the Korean and English board demos. TypeScript types (the guard option, guardBeforeSubmit(), clearGuardNotice(), reloadBannedWords()) are included in dist/webeditor.d.ts.
Bug fix — masking could not be undone
maskSensitiveData() and the [Mask] button in the results dialog edited text nodes directly, so no input event fired and nothing was recorded in the undo history. Ctrl+Z could not reverse it, leaving retyping as the only recovery. Fixed alongside the pre-submit feature, which encourages masking right before saving — undo and redo now work.
Documentation — manual clean-up
- New banned-word configuration section — a comparison of where the list can be set, both methods (config file and data file), reloading, and the matching/masking rules (case-insensitive, no word boundaries — so short English entries can produce false positives). Added to both languages.
- Sidebar labels now match the body headings — the sidebar used short names while the body used numbered headings, which made entries hard to line up. The sidebar now carries the document numbers and the exact heading text (41 entries per language). Subsections of chapter 14, which had been left out of the numbering, were numbered as well.
- Past-version markers removed — "New in v2.4.0" divider rows, version badges next to headings and descriptions, and inline notes such as
(v2.4) or "Since v2.6.0.0" are all gone. The manual now reads as the current version only; per-version history lives in these release notes.
New — [Allow] button in the results dialog
When a value that is not really a problem kept being flagged — a sample number such as 010-1234-5678, or a public contact address — the author had no way past it. Selecting entries and pressing [Allow] now drops them from both the check and masking.
- Off by default — the developer turns it on in the config file. Because it lets users wave the check through, the default is
false. Add window.WebEditorGuardAllow = true to banned-words.js to enable it, or pass profanity: { allowButton: false } to disable it on one screen (the editor option wins over the global setting — the same rule as the licence key and the banned-word list). - It lasts for the editing session only (in memory) and is gone after a reload. For a value that should always be skipped, remove the word from the config file or drop the type from
privacy.detect instead. - Both banned words and personal data can be allowed. Matching is done on the value, not the type: the personal-data patterns overlap (mobile ⊂ landline ⊂ bank account), so keying on the type would let a number allowed as a mobile number be masked again as a landline.
- API —
allowGuardItems(items), getGuardAllowList(), clearGuardAllowList(), plus a profanity.onAllow(items) callback for recording the decision server-side.
New — security marker in the board list (demo pattern)
Posts submitted after using [Allow] looked no different in the list, so a reviewer had no way to spot a post where something was flagged and let past. A marker such as ▲ Security 3 now appears beside the title, and hovering shows the kinds involved (mobile number · email address · banned word).
The allowed values themselves are never stored — only the kinds and counts. Keeping a waved-through phone number or email in the post metadata would make a privacy feature copy the very data it manages into storage a second time, and the kinds and counts already answer what a reviewer needs to know. No marker appears when nothing was allowed, and editing a post recalculates it.
The marker uses ▲ in red. A shield was the same picture as the toolbar check icon and read ambiguously in the list, and an emoji carries its own colour so it cannot be recoloured. ▲ is a text glyph, so the colour applies (contrast 5.91:1, WCAG AA), and it differs from the blue 📎 attachment marker in shape, colour and wording — so it still reads where colour cannot be relied on. Applied to the Korean and English boards and to both internal demo bundles.
Bug fix — the document background survived "New document"
A document background (letterhead or watermark) is editor state, not body content. "New document" only cleared the body and left the background in place, so starting fresh still showed the previous document's letterhead.
Auditing this turned up the same root cause elsewhere: loading a document with no background kept the previous one. You would open a different document, still see the old letterhead, and saving would carry it along. Only the background the loaded document specifies is applied now (and a document that carries a background still restores it).
newDocument() added — clears the body, the background and the modified flag together. The "New document" command in the menu bar and toolbar now uses it.clear() is unchanged — clearing the text while keeping a letterhead is a legitimate use, so its documented behaviour (body only) stays. Use newDocument() when the background should go too.
Bug fix — hyperlinks carried on to the next line
After linking some text, pressing Enter left the link formatting on the next line, so everything typed afterwards became part of the link. There were two separate causes.
- Why the next line became a link — when the caret sits inside a link, the browser clones the link into the new paragraph on Enter (
<p><a href><br></a></p>). It looks like an empty line, but the caret is inside that link, so everything typed lands in it. Splitting a paragraph now cleans up empty links that contain neither text nor an image. - Why the link sometimes vanished — after applying a link the selection still spanned it, so pressing Enter straight away deleted the link that had just been created (the selection was replaced). The caret is now placed immediately after the link once it is applied or edited.
Auditing the same function turned up one more defect: the newly created link was looked up by its address, so if a link with the same address already existed, the wrong one had its text overwritten. The new link is now identified exactly.
Existing behaviour is unchanged — pressing Enter in the middle of a link still leaves both halves linked, a link containing only an image is kept even though it has no text, and unlinking and typing after a link work as before.
Housekeeping — NUL characters removed from the source
A NUL character was found in the core source during the [Allow] work and removed. It had no effect at runtime, but it can make a file look corrupt in some editors and tools, so the whole source tree was swept to confirm none remain.
Demos — feature guides cut back to the essentials
The feature guide at the top of each demo page had kept growing, pushing the editor you actually want to try below the fold. On the integrated demo it took up 80% of the screen and listed 40 items.
All eight demo screens that carry a guide are now down to six to eight core items — from 57–80% of the screen to 16–29%, so the editor and the drop zone are visible straight away. The full feature list lives in the manual and the help page, which the guide now simply links to.
- Version groups removed — buckets such as "New in v2.4 / v2.6 / v2.6.3" are gone. They contradicted the decision to drop per-version markers from the manual, and they were not what you need while testing.
- Developer detail moved out — lists of plugin file paths now belong to the manual. What stayed is the part you need to know: HWPX is opt-in and legacy
.hwp is unsupported, and the layouts are tuned for 800px. - Missing explanations added — the board list guide never mentioned the ▲ Security marker, and on the write page the [Insert a sample] button had been buried in a five-line paragraph. Both are now visible.
The Korean and English demos share the same layout again. While tidying up we also fixed English pages that were still blocked as (Korean only) even though an English version existed (user help and the minimal setup page), and the build now warns when that list goes stale.
Documentation — user help audited against the product
The menu definitions and toolbar button names were read straight out of a running editor and compared with the help page. Measured against the 70 menu commands, a good deal was missing.
- The Table menu had no section at all — all 14 commands of the top-level Table menu (insert/delete table, rows and columns, merge and split cells, cell size and vertical alignment, table and cell properties) are now covered. Conversely the Insert menu listed a "Table…" command it does not have; that has been corrected.
- The Format menu covered only 6 of 19 commands — superscript and subscript, numbered and bulleted lists, indent and outdent, and the four alignments have been filled in.
- New right-click menu section — hyperlink, paste as text, select whole document, and copy as tab-separated text from a table (paste straight into Excel).
- New templates and layouts section, plus Template, Layout and the combined "Import document" command in the File menu, with shortcuts (
Ctrl+N/O/S/P). - Toolbar sections filled in — new, open, save, import document, template, layout, find, select all, and the list-style ▾.
Recently added features are covered too — the automatic check on submit (banner, jump to the entry, review and mask, undo with Ctrl+Z, body-only scope), pictures, shapes, SmartArt and charts in XLSX, the remembered date/time format, the image action bar (caption moves with the picture, Enter leaves the caption, link URLs are validated) and the scope of read-only mode.
Fixed — the file name was being used as image alt text
Inserting an image from a local file put the file name straight into alt (via the file picker, drag-and-drop and paste alike). Beyond the nuisance of a value nobody typed, it caused two real problems.
- It is not alternative text.
alt exists to tell people who cannot see the image what it contains, and a file name is a name, not content — a screen reader simply reads out KakaoTalk_20260803_112233.jpg. WCAG 1.1.1 does not accept a file name as a text alternative. - The local file name of the author went out with the post. It rode along in
getHTML(), so a name such as 2026_staff_reassignment_final.png was visible to every reader.
The default is now empty. Insert-by-URL and the core fallback in the same plugin already used an empty value, so this one path was the odd one out. Any alt typed into the URL dialog is still kept.
New — an “Alt text” button on the image action bar
For an image inserted from a file there was no way to fill in alt short of the HTML source view — the input existed only in the insert-by-URL dialog. The action bar that appears when an image is clicked now has an Alt text button, next to caption and link.
When a description already exists the button reads Edit alt text and shows as pressed. The dialog carries role="dialog" and aria-modal, keeps focus inside using the core trapFocus() helper, and leaves the value untouched when dismissed with Esc, an outside click or Cancel. The wording is translated, so the key count rose to 592 for each of ko and en.
Documentation — the board chapter reworked, and a full public-API audit
Chapter 14 is now titled “Board example (document preview)”. Document preview is what the chapter is really about, and the old title did not say so.
The preview section had fallen behind the implementation. It handles six formats, but the manual listed only three (docx, hwpx, md). A table of extension / handling / plugin required / preview was added, filling in xlsx and pptx (rebuilt as sheet and slide tabs at the bottom) and pdf (not converted at all — shown by the built-in browser viewer, with an open-in-new-tab fallback on mobile). The plugins sample listed seven entries, so copying it verbatim left Excel and PowerPoint unable to open; it now lists nine.
A worked example of wiring the checks into a board was added (14-2). The API existed, but where each piece belongs on a board could only be learned by reading the demo source. It is now laid out as three places — the banned-word list (a global config file), the editor options, and the submit button — with a table of the guard options (notify, block, mask, scope) and a note that [Allow] is opt-in for developers. The write-page example (14-1) had also drifted from the demo — following the manual produced a page where the check never ran — so the pre-submit call was added there too.
The public API was audited by machine rather than by eye. Extracting the public methods, initialisation options and events from the core and matching them against the manual showed options 46/46 and events 12/12 already documented, with five methods missing: the entry points for reaching an element inside the content (querySelector, querySelectorAll, getRoot, getBody, getAPIModelById), render() with skipRendering for batch work, toggleFullscreen(), and trapFocus() for plugin modals. All are now documented, so all 149 public API entries are covered.
Tidying — one shared footer on the home pages, and a corrected tutorial section count
Only the two home pages in the source still carried the old inline footer (no partner logo, company details on two lines), so the home page showed a different footer from the rest of the same site. Both now use the shared footer.js. The Korean build had been swapping it out on every run, but the English build had no such step, so the English bundle shipped the old footer.
The tutorial card claimed eleven sections when there are twenty-one. Along with the number, the list of topics was rewritten to match the actual sections — the old list named things that are not sections of their own and omitted the four document importers and internationalisation.
Fixed — dates were detected as bank account numbers
A date such as 2026-08-03 in the content was reported as a bank account number: the account pattern d{2,6}-d{2,6}-d{2,6} swallowed the YYYY-MM-DD and YY-MM-DD shapes whole.
The editor's own insert-date default format is YYYY-MM-DD, so inserting a date from the toolbar and then running the check flagged the date the editor had just inserted. Official letters and reports are full of dates, so the false positives kept coming.
Korean account numbers never end in a two-digit group in a 4-2-2 or 2-2-2 shape (KB 6-2-6, Shinhan 3-3-6, Woori 4-3-6, Nonghyup 3-4-4-2 …), so excluding only the date shapes does not lose real account numbers. Anything outside month 1–12 or day 1–31 is not a date, so 2026-13-45 is still detected, and the four-group 2026-08-03-1 remains an account number.
The rule is applied in both the check and the masking pass. Fixing only one side would leave a mismatch where something the check ignores still gets covered with asterisks. Eleven regression tests were added (51 → 62).
New — the English demo set is complete (the last five screens)
The Markdown viewer, HWPX import, menu bar and mobile UI screens now have English versions, so every one of the 22 demo screens exists in English. Nothing in the English demo is blocked as (Korean only) any more.
It was not only the visible prose — toolbar title and aria-label text, confirmation dialogs and placeholders were carried across too. In the Markdown viewer, for instance, pressing B with nothing selected used to insert **굵게**.
The work turned up a defect only visible by looking: on the menu bar demo the toolbar and status bar were English while the menu bar alone came up in Korean. The call that builds the menu structure ran before the editor existed, so it fell back to the core default language — and since no Korean appears in the HTML, the build's leftover-Korean check passed it.
Development-only screens that nothing links to (icon and ribbon design previews, a toolbar layout sandbox, minimal setup tests) were left out.
Fixed — demo layout, links and caching
- Four screens spread to the full window width — trimming the guide box at the top removed wrapper
divs but left their closing tags behind, so .page-wrap closed early. Everything after it fell outside the wrapper and lost its max-width (the board listing, the HWPX demo and the English integrated demo). - 20 links in the English bundle were 404s — when the home page is promoted to the bundle root its sibling links need a
demo/ prefix, and that list was maintained by hand, so newly added English pages silently broke. Nine links in the English manual that still pointed at Korean pages, and five home links on the settings screens, were fixed at the same time. - Fixes that did not take effect — the cache query (
?v=) was not raised, so browsers kept reading the old scripts. Tokens across 32 demo files were bumped, including ones such as the Markdown plugin that had been stale for several releases.
All three are now caught by the build: a broken-page-link check was added (it caught the link defects above the moment it went in), and the version-bump script now raises the cache query on demo pages as well.
New — four English settings pages and the English tutorial (localisation finished)
The remaining four settings pages (settings hub, icon/toolbar UI, applied demo, menu bar settings) and the tutorial (21 sections) now have English versions. All nine entries in the English demo menu are live, and the only thing still marked (Korean only) is the Markdown viewer.
The tutorial runs to 1,500 lines with 490 of them containing Korean, so it was translated through a line-number map rather than a string map. It is unambiguous which line was changed even when the same wording recurs, and if the Korean original shifts the build fails immediately with "there is no Korean on that line". The eight example editors take their options from a shared Korean config file, so the language and placeholder text are overridden only on the English page — editing the shared file would have turned the Korean tutorial English as well.
settings-nav.js now reads <html lang> too. Its menu labels and the skip-to-content link were hard-coded in Korean and were being read out on the English settings screens.
The English demo home page had drifted from reality and was fixed as well: nine links (tutorial, DOM API, document import, Markdown editor, the four settings pages and the menu UI comparison) were greyed out as (Korean only) although the English versions existed, and the tutorial card still claimed 11 sections when there are 21.
Two false alarms in the build's own checks were fixed: the broken-reference check was reading the tutorial's on-screen code samples (<script src="dist/webeditor.min.js">) as real references and reporting 404s that did not exist, and the leftover-Korean check was flagging glyphs that are not translatable text, such as the 한 on the HWPX icon.
New — four English demos (DOM API · document import · Markdown · menu UI)
Several entries in the English demo menu were blocked as Korean only: the description was in English, but there was nothing to click through to. Four of those screens now have English versions, so DOM API, Document import and Markdown editor are live again (Settings and Tutorial are next).
They were produced by keeping the Korean structure and moving only the wording and paths. Rewriting them from scratch would have let the two versions drift apart, making later Korean changes impossible to carry across.
Problems the work exposed were fixed too — the new English screens did not set language, so the menu bar, toolbar and status bar came up in Korean; the menu UI screen was loading a Korean-only settings menu; and some shared scripts were never copied into the English bundle, giving 404s. All three were caught by the broken-reference check built into the bundle script.
New — English user help
There was no English help page, so English-speaking users had to read the Korean one. It has been written as its own document rather than folded into the manual, includes everything above, and matches the Korean page section for section — 20 of them, in the same order.
An accessibility defect was fixed alongside it: a11y.js had its screen-reader wording hard-coded in Korean, so every English page announced "(새 창 열림)" on links. It now picks the wording from <html lang>, the same way footer.js does (Skip to main content, (opens in a new window)).
New — 12 English document templates
Opening the template picker in the English demo showed Korean names such as "업무 보고서", and inserting one dropped Korean body text into the document — the English folder had no templates, so the Korean ones were being used.
English versions now exist, matching the Korean set file for file: Business Report, Business Trip Request, Internal Proposal, Expenditure Resolution, Expense Claim, Leave Request, Meeting Minutes, Notice, Official Letter, Purchase Request, Resume and Vehicle Request. Date placeholders read ____-__-__, the approval box is Staff · Team Lead · Dept. Head · CEO, and the categories are in English (Work, HR, Approval, Expenses, Documents, Personal, General Affairs). The Korean templates are untouched; the build uses the English set when it exists and falls back to Korean otherwise.
Improvement — date/time insert remembers the last format
Reopening the format picker now shows the format you chose last already selected, and clicking the icon itself (without the arrow) inserts that format too — previously it was always YYYY-MM-DD. Format strings are regenerated from the current time, so the list index is what gets remembered. The scope is the editor instance (the session); a reload returns to the default.
Improvement — attachment marker in the board list
A clip and a count now appear next to the title (📎 2), so posts with attachments are obvious from the list. The count uses the same rule as the post view (view.html) — only data: URL entries that can actually be downloaded — so leftover shell entries in storage cannot skew it. Applied to both the Korean and English boards.
English demo overhaul
- Top-menu links leaked to Korean pages — the English page list in
nav.js did not match the actual folder, so the menu pointed at the Korean manual even though an English one exists. The list now matches the files, and entries with no English version are no longer linked (kept in place, but not clickable or tabbable). - An English home page was added — the English counterpart of the Korean overview page.
- Board features ported — profanity/privacy checking, long file-name truncation, responsive post metadata and the core default toolbar and menu bar now behave exactly as in Korean.
- An English preview window was added — attachment preview used to 404 in the English folder. The PDF fallback messages are in English too.
Pages that still have no English version (tutorial, DOM API, Markdown, the configuration screens) remain in the menu but are unlinked and marked Korean only.
Things that were quietly wrong in the English bundle
Actually opening the English bundle turned up three problems that failed without any error — everything looked fine on screen.
- Banned words were never checked — the config file shipped in the bundle but its path was off by one level, so it returned
404 (flattening the English folder structure shifted the ../ references). The list stayed empty, so only personal data was caught. - The editor ran in evaluation mode — the Korean bundle sets a licence, but the English generator only carried a comment saying it "uses the core default" and set nothing (the core has no default). The English demo therefore showed a Korean trial notice.
- Fixing it changed nothing — the injected config script had no cache busting, so browsers kept the old file. A content hash is now appended, so it is re-fetched only when the content actually changes.
To stop the same class of mistake from slipping through again, the build now checks itself: it verifies every script reference in the output against the real files and fails on a broken one, and it reports Korean sentences left in the English bundle.
Structure — TotalDemoEn, a standalone internal English demo bundle
node make-totaldemo-en.js builds an English demo bundle that runs on its own. It shares no files with the Korean TotalDemo (each keeps its own dist, img and assets) and has no links out to Korean pages, so it can be deployed by itself. nav.js used to detect English from the folder path, which fails in the bundle because the folder is named demo/; it now also honours window.DEE_DEMO_LANG, injected by the build.
Improvement — entering an image link
- New links now start with
https:// already filled in and the caret placed after it. When editing an existing link the current address is selected so it can be replaced in one go. - The address is validated, and an invalid one raises a notice instead of closing the dialog.
www.example.com is upgraded to https:// automatically, while values like example.com or htp://… are reported as malformed. javascript:, vbscript: and data: (other than images) were already blocked, but only a console warning was written — to the user nothing appeared to happen. The reason is now shown on screen.
Unified dialog design
Dialogs differed in header colour, width and button size, so they did not read as one product (a light grey header, a blue gradient header, no header at all, inline styles). All of them now share the same shape — a header bar, a body, and a footer rule above right-aligned buttons: link, video, insert image, image link, document background, document import, profanity check, special characters and cell split.
The styling lives in a single shared block in editor.css, so any new dialog only has to follow that rule. The About dialog is deliberately excluded — it is a logo-led brand screen rather than a form.
Bug fixes
- Formatting was lost when converting to upper or lower case — the selection was replaced wholesale with plain text, so italics, bold, links, and text colour all vanished. Only the characters in the text nodes are changed now, so formatting and element structure survive; the selection is preserved and undo works.
- Choosing “At the cursor” on document import still appended at the end — the unified “Import document” entry did not save the caret before opening the file picker. Per-format plugins each save it, but the unified path goes straight through the core, and with no saved caret the insert falls back to the end of the document. Selections outside the body are no longer saved either, which also closes the path where clicking a menu or toolbar wiped a good caret.
- Text colour and highlight popups opened away from their icon — the popup is
position: fixed, yet window.scrollY was added to the already viewport-relative coordinates, so it drifted down by the scroll amount. Placement now lives in one shared core helper, with horizontal clamping and a flip above the anchor when there is no room below. The emoji, date/time, and list-style popups had the same defect and were fixed too. - Dismissing a popup without using it took two outside clicks — the emoji, table grid, and list-style popups use a “swallow the opening click” flag. But the toolbar’s delegated handler calls
stopPropagation(), so the opening click never reaches document — the flag survived and ate the user’s first real outside click instead. They now follow the date/time popup, which never had the problem (no flag; the listener is registered on the next tick), so a single click dismisses them. Clicks inside a popup (switching emoji tabs, for instance) behave as before. - The floating mini toolbar was never created —
InlineToolbar stores the editor on this._editor, but the build step read this.editor, so it threw on every init and selecting text produced no mini toolbar (when the inlineToolbar option was in use). The editor swallowed the error, so nothing else broke and it went unnoticed. - Credit-card detection matched the wrong span — the pattern allowed a space as the separator and let separators differ between groups, so in
02-6719-6200 1234-5678-9012-3456 it matched 6719-6200 1234-5678 — the tail of the phone number plus the head of the card — and missed the actual card. The separator must now be consistent, so hyphenated, space-separated and unseparated 16-digit forms match while mixed ones do not. - One number was reported under several types — mobile ⊂ landline ⊂ bank account, in order of how broad the patterns are, so
010-1234-5678 alone produced three findings. The review dialog has always filtered these, but the public validate() API returned them raw, so save-time validation saw duplicates. Overlapping spans now keep only the most specific type. - Document preview would not open in the English demo — the English board opens
doc-preview.html from its own folder, but that file did not exist there, so it 404ed. An English preview window was added. - Shared scripts 404ed in the English manual —
footer.js and a11y.js were looked up in the same folder although they live one level up in demo/. The reference paths were corrected. - Dragging inside a dialog and releasing outside closed it — selecting text in a field and letting go outside the dialog made it disappear. A
click fires on the common ancestor of the press and the release, which was the backdrop, so it was mistaken for a backdrop click. A dialog now closes only when the press also started on the backdrop (video, image, hyperlink, import and every other dialog of that shape). - Aligning a captioned image moved only the caption text — a caption is a separate editing area inside the body, so aligning with the caret in it targeted the caption alone. The picture and its caption now move together.
- Enter could not escape the caption — line breaks piled up inside it, and text typed afterwards inherited the caption styling (small, grey, centred). Enter now moves to a new paragraph below the picture; Shift+Enter still breaks the line inside the caption.
- Adding a caption and a link let the caption be added over and over — a link makes
<a> the image’s parent, and the caption check only looked at that parent, so [Add caption] became available again and each press nested another wrapper. The caption is now found correctly even with a link, applied once, and removing it keeps the link.