Официальный сайт SLAED CMS
Журнал изменений
Roadmap steps 47 to 49: the search field of a Node list offers up to five titles of its type as the reader types, the header plan is deleted with its lasting part in the reference, and the pager of both themes becomes the approved face of pg-09 and pg-14 - the arrows and the numbers on the segmented rail with its travelling plate, "to the top" beside them, the page line under them, narrowing by its own column.
Core changes:
- Search hints (core/user.php, public/index.php, modules/node/index.php, partials/node/head.html, partials/node/hints.html):
getNodeHint() answers the light route
go=1&op=getNodeHintwith up to five links to what the search of the type finds under the read rights of the visitor; a word under the search minimum or a type outside the search answers nothing- the field is a combobox that asks after 300 ms through htmx; the list
#sl-node-hintsis a listbox - Hint keys and face (public/plugins/system/slaed.js, lite theme.css):
setHintKeys(): the arrows walk the hints round by
aria-activedescendant, Enter opens the chosen one, Esc closes the list before the lens hears it; the list opens only with options and closes when the focus leavessl-node-hintsandsl-node-hintin the lite theme- Node header reference (docs/NODE.md, docs/TEMPLATES.md, docs/VERSIONS.md, docs/5-NODE-HEAD-2026.md):
- the header, the views, the live list, the search and the feed described as they stand; the change in VERSIONS
- the plan file deleted
- Pager view (core/helpers.php):
getTplPagerView() marks each number of the window
is_faroris_nearthe current page, never an anchor, and handsrange_from,range_toandrange_textto the pager when the caller names the page size and the total- the arrows carry
rel="prev"andrel="next"; the dots are a pager-link cell instead of an inline badge - Pager fragments (fragments/pager.html, fragments/pager-link.html, fragments/inline-badge.html of both themes):
one pair of files, byte for byte the same in lite and admin: a
navlabelled_PAGENAV, the arrows assl-but-mini, the numbers assl-seg-cellinsl-seg sl-seg-pagerwithdata-sl-knob="pager", the side group with "Наверх" on#top, the line "Страница 3 из 10 · Показаны 21–30 · Всего 97"- the admin
sl-pnumrow and theis_pager_dotsbranch of both inline badges are gone - Pager theme (theme.css and base.css of both themes):
.sl-pageris the container its steps measure: under 520px of its column the far numbers and the range go, under 320px the neighbours too; the site centres the row, the panel starts it at the left and pushes the line right- the digits of the rail read at
--sl-textfor AA, a number in hand takes--sl-primary-strong - the forum foot gives the pager a width and wraps it under the buttons; the panel list foot wraps under 560px
--sl-pnum-width,--sl-pnum-height,--sl-pnum-border,--sl-pnum-arrow-width,--sl-pnum-arrow-heightand the admin--sl-card-shadowstruck from the frozen API by the owner's decision: their one reader was the drawn arrow of the old panel pager- Strings (lang/*.php):
_PAGENAVand_PAGERANGEin six localesTests, gates and plans (tests/Unit/PagerViewTest.php, tests/Unit/NodeRouteTest.php, tests/Support/route_probe.php, tools/ui-contract.php, tools/ui-audit-baseline.json, tools/ui-contrast.json, tools/ui-shots.mjs, docs/6-PAGER-2026.md, docs/ROADMAP-2026.md):
- PagerViewTest: the anchors, the dots, the marks at the first, a middle and the last page, the arrows, the range
- NodeRouteTest::theSearchHintsFollowTheSearchOfTheType over real requests
- the contrast crawler measures the chosen cell of a rail against the plate under it, not against the track
- the contract drops the pager fragment forks and the stale duplicate group, the freeze exception is recorded
- steps 47 to 49 ticked, the decisions of PAGER batch 1 recorded
Benefits:
- a reader reaches a material from the search field without leaving the list
- one pager markup for both themes, readable on a phone and in a 329px column, with the plate travelling between pages
Technical notes:
Breaking: the pager fragments take new keys and print new classes; a theme with its own copy of pager.html or pager-link.html keeps its old face and loses the marks;
.sl-pager-nextprev,.sl-pager-prev,.sl-pager-next,.sl-pnum-nav,.sl-pnum-curand.sl-pnum-dotsare gone- Breaking: six admin API tokens removed, listed above
- no schema, address or API change; the light route
getNodeHintis a new public read tests: ui:gates green, phpstan and php-cs-fixer clean; the screenshot rig moved only the five pages with a pager; the 11 failing NodeProfileTest methods fail on the clean HEAD as well (installer probe)
Roadmap step 46, NODE-HEAD batch 6: the header and the list of a Node type are one part that htmx swaps in place, with the address pushed and the title a reload shows, and "Show more" appends the next page under the cards. Two faults of batch 4 found by the browser check are repaired: the stuck bar flipping on a phone and a header window closed by any swap of the page.
Core changes:
- Part answer (modules/node/index.php, core/system.php):
setNodeList() answers an
HX-Requestwith the part alone headed by its<title>, every answer withVary: HX-Request- getHeadTitle() is the one rule of the title of a site page; setHead() and the part both call it
more_hreflinks the next page under every view but the rail;_NODE_MOREin six locales- Live list template (partials/node/list.html, partials/node/head.html, fragments/mode-switch.html):
#sl-node-listis the target of its swaps and the history element of htmx without a snapshot cache, so back and forward ask the part againthe filter toolbar, the three windows and the foot
#sl-node-footare boosted; "Добавить" carrieshx-boost="false"; the view switch posts throughhx-post"Показать ещё"
#sl-node-moreappends the cards of the next page to#sl-node-itemsbyhx-selectand redraws the foot byhx-select-oob- Script and theme (public/plugins/system/slaed.js, lite theme.css):
data-sl-swap-revealbrings a swapped part back when its head went above the screensetToggleBlocks() gives a block its default once, marked by
data-sl-toggle-ready; a later run keeps the state it stands in, read by isToggleOpen() as setToggleBlock() reads it.sl-node-listtakesoverflow-anchor: none, so scroll anchoring no longer unsticks the barTests and plans (tests/Unit/NodeRouteTest.php, tests/Support/route_probe.php, docs/5-NODE-HEAD-2026.md, docs/ROADMAP-2026.md):
NodeRouteTest::anHtmxRequestGetsTheListPartAlone over real requests: the part, the whole page, Vary, the title, "Show more" and the boosted regions
- the decisions of batch 6 recorded, step 46 ticked
Benefits:
- a reader narrows, sorts and pages a list without a full reload, and every state keeps its own address
- one title rule for a page and its swapped part
Technical notes:
- no schema, address or API change; a list answers the same URL with the part to htmx and the page otherwise
- a theme with its own copy of partials/node/list.html works as before without the live part
Roadmap steps 44 and 45: the draft header of a Node list becomes the approved face of nh-13 - a sticky bar with the windows of the categories, the letters and the sorts, month heads and counts in the plural form of the locale - and a type now offers views of its list: cards, compact, list, accordion, tiles and a rail, the choice of the visitor kept in a cookie. The stand pages of the panel UX plan for 2027 follow the owner's choices of the menu and gain the rail.
Core changes:
- Header face (partials/node/head.html, theme.css, base.css, modules/node/index.php):
sl-node-headsticks withdata-sl-sticky; the windows of the categories, letters and sorts open one at a time throughdata-sl-toggle-group; the lens opens the search over the stuck bar- the stuck bar takes the lens below 900 px of its own width, measured by
@containeron the bar - token
--sl-node-find-widthwith the componentnode-findin the contract - Windows and counts (core/system.php, core/classes/node/query.php, category-row.html):
- setCategories() draws "all materials" first and the top level with its subcategory chips, the chosen one marked
getLetterNavi() marks the chosen letter and tells each count; NodeQuery::getNodeLetters() counts the letters of a category live, the stored counts serve the list without one
- getPluralForm() picks the form a constant carries by the plural rule of the locale (three forms ru, uk, pl)
- Month heads (fragments/date-head.html, partials/node/list.html, privat-list.html, modules/account/index.php):
- a list by publication in cards or compact is headed month by month with the count of its cards on the page
- one date head for the mailbox and the Node list:
sl-pmf-daybecamesl-date-head, its token keeps its name - Views of a list (core/classes/node/query.php, config/node.php, modules/node/profiles/*.json):
list.viewschecked against NodeQuery::VIEWS, its first view the default- an empty list, the default, offers the one view of the display mode by NodeQuery::MODEVIEW
- news offers cards, compact and tiles; docs list and rail; faq accordion and list
- the type form of the panel gains the allowed views and the default view
- View switch and cards (mode-switch.html, modules/node/index.php, docs/card.html, media/card.html, theme.css):
the list answers a POST of the switch: its token of scope
viewsets the cookieview-<type>and answers 303 to the same list; a view outside the type or a foreign token changes nothing, a stale cookie falls backfragments/mode-switch.htmldraws the colour mode and the view switch, cells carryaria-pressedlist is
node/docs/cardwith the thumbnail and the date, accordionnode/faq/card, tilesnode/media/cardwith the play mark only for media; containerssl-node-compact,sl-node-row,sl-node-tiles,sl-node-rail- the rail is the tabs of slaed.js on two panes;
sl-pmf-split/aside/viewrenamed tosl-duo/-aside/-main partials/node/media/list.htmldeleted, the common list draws the tiles- Strings (lang/, admin/lang/, modules/node/lang/, modules/node/admin/lang/):
_PRSORTand the panel_SORTbecame one_SORTin lang/;_CATVORHremoved with the category toggle- the views, the windows and the counted materials in six locales
- Panel UX stand (public/demo/ux-01 to ux-09, demo.js, demo.css, docs/2027-ADMIN-UX.md):
- the menu keeps the two panel blocks with a filter above them in place of four groups
- the list view icons, saved views that keep the filter, the view and the sort, the icon pair of the top bar
- ux-09-rail.html: the menu folds into a rail of icons with the same fan as the full menu
Tests and gates (NodeRouteTest, NodeQueryTest, NodeProfileTest, SegKnobTest, route_probe.php, node_probe.php, tools/ui-contract.php, tools/ui-audit-baseline.json, tools/ui-contrast.json):
- a list answers only the views of its type and falls back to its first; POST answers 303, PUT 405
- header links, counts, month heads and letters of a category over real requests
list.viewsrefused when repeated or outside the registry
Benefits:
- one face for every Node list, its controls links the server answers
- a type chooses how its list reads without a template of its own
Technical notes:
- Breaking:
config/node.phpneedsnode.defaults.list.views([]); without it every type is refused atlist - Breaking: POST to a Node list answers 303 instead of 405
- docs/5-NODE-HEAD-2026.md records the decisions of batches 4 and 5
Roadmap steps 38 to 43: the editor plan closes into its reference, the segmented switch with its travelling knob becomes a part of both themes, and the Node list header is built in its first three batches - the decisions, a feed that names and dates its list and revalidates, the script of the bar, and the data of the header with a draft template. The rank plan and the panel UX plan for 2027 join the docs with their stand pages.
Core changes:
- Editor reference (docs/EDITORS.md, docs/TEMPLATES.md, docs/VERSIONS.md, docs/4-EDITOR-2026.md):
- the shell, its runtime, the manifests with a list type and what a page may tell an editor described as they stand
- the plan file deleted, its lasting part in the reference
- Segmented switch and the top link (slaed.js, base.css and theme.css of both themes, mode-switch.html, foot-controls.html):
sl-segwithdata-sl-knob: a knob that travels to the chosen cell, the header mode switch stands on it- one "Наверх" on
#topwith smooth scrolling in CSS; getFootControls() and the mode switch lose their dead keys - dead flags of link.html, span.html and toggle-form-block.html cleared; tests/Unit/SegKnobTest.php
- Node feed (core/user.php, tests/Support/route_probe.php):
- the channel names the site, the type and a readable category; links its list; lastBuildDate is the newest item
- a closed or unknown category answers 404; the tag is computed before rendering and answers 304
- the copyright names the site
- Header script (slaed.js, public/demo/nh-08 to nh-13, demo.js, demo.css):
data-sl-toggle-group,data-sl-stickywithdata-sl-stuck,data-sl-lens; the stand pages stand on them- Header data (modules/node/index.php, partials/node/head.html, list.html and media/list.html of lite):
getNodeHead() replaces getNodeNavi(): count with "N of M" for a narrowed list, the sorts of the type, the other direction, reset, the feed with the category, the form and the category switch; every link keeps the filters
- getNodeSortWay() is the one default direction of a sort for the list and the header
personal filters
new=1andfav=1for a signed-in visitor, any other value 400,favon a type without favorites 400; a guest's one narrows nothing and is answered noindex- Counts and their cache (core/classes/node/query.php, core/system.php, core/classes/node/service.php):
NodeQuery::getNodeTally() counts the total, the main and extra categories, the first signs and the next publication or expiry; getNodeReadSet() names the readable set; setNodeFavorite() and getNodeOwnCount() serve the filters
getNodeCountMap() keeps one file per type, an entry per readable set, until a write, a type version or the next publication; deleteNodeCountMap() is called after every material write and by deleteCategoryMap()
- category tiles carry their count, a closed tile none; a letter without materials is not linked; the total shows
- Previous visit (core/system.php, modules/account/index.php):
getUserLastVisit() keeps
lastvisper account in the session; updateSessionTrack() and setUserLogin() ask it before they move the column- Constants (lang/.php, admin/lang/.php, modules/node/lang/.php, modules/node/admin/lang/.php):
_ASCand_DESCmoved from the panel language to the site language,_NODE_UPDATEDto the site language of Node_NODE_SINCEand_NODE_INFAVin six localesPlans and stands (docs/ROADMAP-2026.md, docs/5-NODE-HEAD-2026.md, docs/6-PAGER-2026.md, docs/8-RANKS-2026.md, docs/2027-ADMIN-UX.md, docs/NODE.md, public/demo/grp-01 to grp-10, public/demo/ux-01 to ux-08):
- the decisions of NODE-HEAD batches 0 and 3 recorded, steps 38 to 43 ticked
- the rank plan joins the roadmap as steps 51 to 53, the schema steps move to 54 to 61
- the panel UX plan for 2027 with its stand pages, outside the roadmap
- Panel settings (admin/modules/config.php):
- the CSS file field of the settings is no longer required
- Theme gates (tools/ui-contract.php, tools/ui-audit-baseline.json, tools/ui-contrast.json):
- the contract and the registries follow the switch and the new rules
Benefits:
- a reader sees how many materials a list holds and narrows or sorts it with plain links that keep each other
- the counts cost no query on a cached request and change at the moment a material does
- the feed is a list of its own for readers and search engines, with revalidation instead of no-store
Technical notes:
breaking: partials/node/list.html receives
head_htmlinstead ofnavi_html; getNodeNavi() is gone; a theme with its own copy of the list template draws no header until it follows- breaking: getFootControls() lost its label and debug parameters
- new data cache file per Node type: nodecount; no schema change
tests: NodeRouteTest gains the feed and two header tests, NodeQueryTest the new public methods, SegKnobTest; ui:gates green, phpstan and php-cs-fixer clean; the screenshot rig moved only node-list as intended
- the 11 failing NodeProfileTest methods fail on the clean HEAD as well (installer probe)
Step 37 of the roadmap, EDITOR batch 10: every frame of the shell can show what the reader will see, a file template filled with sample files of the panel theme and a text rendered by the parser through a POST route, both in a sandboxed frame. The screenshot rig that guards such changes now walks the manifest in parallel, shoots only the states a change can reach, and no longer reports the live figures of the stand as theme changes.
Core changes:
- Preview data and route (core/classes/editor.php, core/helpers.php, public/index.php):
previewis a key of the page likevars: 'text' or the sample values of a template with an address to open- getPageData() validates it, getViewData() hands the frame its route, token, module and store, or the values
- getTplTextarea() passes 'text' for every field
getEditorPreview() answers go=1 on the site and go=5 in the panel, POST only (405 otherwise)
- the save filter of the format and checkEditorTextRoom() run first, as a save runs them
- an attachment of a closed owner is drawn in the context of an unsaved text, [getUploadOwner($mod), 0]
- the answer ends there, so the debug block of the door stays out of the frame
- File template samples (admin/modules/uploads.php, core/classes/filemanager.php, public/templates/admin/assets/samples/):
- getTemplateSample() fills the variables as the parser does for one file: picture, sound, video, PDF, archive
- four bundled samples, 24 KB together; a PDF falls back to its link in the sandbox and the pane links the sample
- FileManager::getFileKind() becomes public and static for it
- Shell and runtime (public/plugins/system/editor.js, editor-frame.html and editor-kit.html of both themes):
- the eye in the capsule and a palette row; the pane under the text, beside it on the full screen
- the page is written by srcdoc with the stylesheets and colour mode of the page, sandbox="allow-same-origin" without scripts
- an older answer is dropped, the frame height follows the page through a ResizeObserver
- Theme (theme.css of both themes, tools/ui-contract.php, lang/*.php):
- pane, sheet and side-by-side full screen rules on existing tokens; --sl-d-view-height registered
- _EDITOR_SAMPLE in six locales
- Screenshot rig (tools/ui-shots.mjs, tools/ui-shots.json, package.json):
- the viewport is stretched to the document once instead of a full-page shot per try, which fired a resize every time
- a pool of four slots, each with its own PHP session, saved between runs
a DOM snapshot beside every picture; a check shoots only a state whose DOM moved, which loaded a public file changed since the capture, or which a changed CSS rule still matches; a DIFF names the elements that moved
- PNG comparison in Node through pngjs with the former metric; noise floors kept between runs and measured from a fresh load
- masks after a step that navigates, no focus in a base state, list boxes scrolled alike
- the footer timing of the panel and the live rings, bars and charts of the presentation are masked
Benefits:
- an author sees the rendered text or template before saving, in every engine of the shell
- a full before takes about 3.5 to 4 minutes and an after about 3, against 10 to 15 for each before
- the false differences of the front page, the presentation and the file block code state are gone
Technical notes:
- new route op getEditorPreview in go=1 and go=5; no schema change
- new dev dependency pngjs 7.0.0
- tests: EditorFormatTest::previewFollowsItsCaller; ui:gates green, phpstan and php-cs-fixer clean
- the 11 failing NodeProfileTest methods fail on the clean HEAD as well (installer probe)
Plain Plus and CodeMirror now take the variables of a template from their caller with a list, a hint at the caret and marks, check an html template with a badge, a list and fixes of one click, and compare the present text with the loaded one in a window of the canon. Roadmap steps 34 to 36 (editor plan batches 7 to 9); the schema plan for 8.0 joins the roadmap as steps 51 to 58.
Core changes:
- Variables and the hint (core/classes/editor.php, public/plugins/system/editor.js, fragments editor-kit.html and editor-frame.html):
vars is a map of a word in brackets to its description; Editor::getPageData() reads it for getCode() and getContent() and getFrame() empties it, so the interfaces keep their signatures and the next frame starts clean
The frame hands the pairs over as data-sl-editor-vars; the capsule gains the list and the hint (Ctrl+Space), the palette a group of its own with one row a variable
One list .sl-editor-hint serves Plain Plus at the caret and every engine under the capsule button: arrows choose, Enter, Tab or a click insert as one step of undo, a used variable is ticked
- CodeMirror marks the known variables and completes them after a bracket through one language data source
- The status line counts the variables used
- Template check and format (core/classes/editor.php, public/plugins/system/editor.js, fragments):
lint is a key like vars, kept only for html; getIssues() is one check for every engine: unknown variable with the nearest known one, a tag left open or closed twice, img without alt, _blank without noopener, a value without quotes, a template without [src]
A textarea checks after a pause, CodeMirror through linter() with its gutter; both write the badge, the rail and one list from the kit, a row selects the place, its button applies the fix found again in the present text
"Tag on a line" and "join into one line" need the check, in the capsule and in the palette under Format; Ctrl+Shift+M opens the findings, F8 steps through them in CodeMirror
- Comparison (fragments editor-kit.html and editor-frame.html, public/plugins/system/editor.js, theme.css):
A dialog.sl-modal.sl-modal-lg in the kit, cloned once per page: the views "together" and "side by side", the count of units gone and new, "restore before" and "keep after"; it opens from the capsule, the palette and the dirty mark of the status line, which became a button
Computed only when opened and written as text nodes with del and ins; the shared head and tail are cut first, the middle is aligned by its longest common subsequence up to four million cells, else by lines and the changed lines by units; an 80 KB text with three edits opens in about 100 ms
- "Restore before" writes the loaded text after the window has closed, one step of undo
- Callers and texts (admin/modules/uploads.php, admin/lang/, lang/):
- tplconfig is the first caller: it passes its variables and asks for the check
_TPINFO and the markup it carried leave the admin locales; ten UPLOADS* constants describe the variables and the alert above the form lists them, which fixes the French and Polish lines naming the wrong variables
- Thirty EDITOR* constants in six locales for the variables, the check, its fixes and the comparison
- Themes (templates admin and lite, theme.css, tools/ui-contract.php, tools/ui-audit-baseline.json):
Rules of the hint, the findings, the badge and the comparison in both themes on their own tokens; the fix button and the selected row of list and CodeMirror share one rule
The editor tab gives way to the capsule and cuts its words instead of wrapping, so a capsule unseen at rest never makes an editor taller
- The resets of the palette and the comparison bodies outrank the canon spacing of the window body, which overrode them
- --sl-d-hint-x and --sl-d-hint-y registered; the audit baseline is stored
- Tests and plans (tests/Unit/EditorFormatTest.php, docs/*):
- EditorFormatTest checks the variables, the check and the comparison through both doors, the kit and the runtime
- The editor plan records batches 7 to 9 and decision 13; WINDOW.md lists the editor comparison
docs/7-SCHEMA-2026.md plans one set of column domains, the time rule, the connection contract, the collation, unique email and keys that serve queries; the roadmap ticks steps 34 to 36 and adds the schema steps
Benefits:
- A template is written with its variables at hand and checked before it is saved
- Every change can be seen against the loaded text before the form is sent, at any length of text
Technical notes:
- Stored content and the editor interfaces are unchanged; no schema, address or API change
- Rows of editors with a long tab are one line now, 29 px lower where the capsule used to wrap above the tab
- Gates: ui:gates and the editor and file format tests pass; the audit baseline is stored
Plain Plus and CodeMirror as text now insert files and emoji as Toast UI does, through one adapter of the shell runtime, and both engines carry the capsule of the final face with only the commands each one serves, a command palette that is a window of the canon, the Markdown commands with a list continued by Enter, and a counter of the room the text column leaves. Roadmap steps 32 and 33 (editor plan batches 5 and 6).
Core changes:
- File window for every text engine (core/helpers.php, core/classes/editor.php, public/plugins/system/editor.js, filemanager.js):
getEditorFileKit() works out the options and draws the file window, the gallery and the insert options once for Plain Plus, CodeMirror and Toast UI; the window ids are <id>_fm* for every engine
- A text whose field names an upload place carries the options as data-sl-editor-files; code takes none
The adapter getPort() answers focus(), insertText(), exec('addImage'), getMarkdown() and addHook('addImageBlobHook'); SlaedFileManager.addUpload() binds it on first use and api.addPanel opens the window
- A picture is written in the format of the field: Markdown for markdown, the [img] tag otherwise
- A pasted or dropped image goes to the window as Toast UI's hook sends it; a paste carrying text/rtf stays text
- The forum's insert of a name reaches a text under CodeMirror through SlaedEditor.getEditor()
- Emoji in the shared runtime (public/plugins/system/emoji.js, emoji/<locale>.js, partials emoji-panel.html):
- Script, six word files, templates and rules leave the Toast UI plugin and skins; SlaedEmoji replaces SlaedToastUi
Editor::getEmojiPanel() prints the panel once per answer; Plain Plus and CodeMirror load it on the first press, Toast UI with its page; every text offers it, code never
- Capsule and palette (fragments editor-kit.html and editor-frame.html, public/plugins/system/editor.js):
The capsule stands in groups, each command marked with what it needs (cm, code, text, markdown, files); the runtime drops what the frame cannot serve and an empty group, the theme draws the line between groups
The capsule keeps to one line within --sl-capsule-max-width and scrolls the rest, so a capsule unseen at rest never makes an editor taller; under 900 points the folds leave it, under 560 copy and reset
The palette is a modal dialog.sl-modal inside the kit, cloned once per page: groups Edit, Format, Insert, View, a filter by letters in their order with the matches marked, the last command raised with the word of the locale, the keys of the engine under the list, Esc closing at once over a typed search
- A command runs once the palette has closed and given the focus back, once per choice however often it is pressed
- Ctrl+K is heard only inside a frame; Ctrl+B and Ctrl+I only in the text of a Markdown field
- Markdown commands and counter (public/plugins/system/editor.js, core/classes/editor.php):
Bold, italic, code, link, list and quote put their mark around the selection or take it away; code over several lines becomes a fence; a link selects url to be typed over, a selected address becomes the target
A textarea continues a bullet, numbered, task and quote list by Enter and ends it on an empty item; CodeMirror does that through its Markdown grammar
- The commands follow the format of the field: CodeMirror as text has them, Plain Plus only on a markdown field
data-sl-editor-room carries the room of a text column; the status line says what is left in bytes and turns to _ETEXTLONG once the text no longer fits; mediumtext columns and code show no counter
- Themes (templates admin and lite, base.css, theme.css, editor skins):
- Palette, capsule groups, counter and emoji panel rules byte-identical in both themes; Toast UI skins lose the panel
- --sl-capsule-max-width declared in both API blocks; component capsule declared in tools/ui-contract.php
- .sl-editor-sep gone, the line between groups is a pseudo-element
- Texts, tests and plans (lang/, tests/Unit/, docs/*):
- Thirty-one EDITOR* constants in six locales; _CODE, _URL, _LIST, _QUOTE, _EFULLSCREEN and _EDITOR_NONE reused
EditorFormatTest checks the capsule, the palette and the counter of the column; the file manager tests follow the resolver, which opens md as Markdown and ini as INI since the batch that added those grammars
Editor plan records batches 5 and 6 and decisions 8 to 12; WINDOW.md lists the editor palette; roadmap steps 32 and 33 done
Benefits:
- One shell gives every text engine the same file window, emoji, commands and keys
- Every command stays reachable from the palette, whatever the width of the row
Technical notes:
- Stored content is unchanged; Plain Plus still stores plain, so its Markdown commands wait for a markdown field
- The counter measures the raw text; the server measures the filtered value, which a plain text makes longer
Gates: ui:gates, the editor, language, file manager and asset version tests pass; the audit baseline is stored; NodeProfileTest stays red as on the previous commit (the install probe)
Plain Plus and CodeMirror share one editor shell with a runtime, a capsule and the window standard of the panel; CodeMirror is now also a text editor that stores Markdown, offered to members and administrators. Code shown on the site and in the panel reads one mono face and the token tones of the theme, and every code block, BB or fenced, carries its language, a copy button and a fold for long code.
Core changes:
- Editor shell and runtime (core/classes/editor.php, public/plugins/system/editor.js, fragments editor-frame.html and editor-kit.html):
- Plain Plus and CodeMirror render one frame: tab, capsule, status line, draft of the tab in sessionStorage
- CodeMirror loads as a core and one grammar per frame when it comes into view; the textarea keeps carrying the value
- The floor of CodeMirror is the measured height of its field, so a form does not jump when it mounts
- An empty required text under CodeMirror marks the frame and takes the focus instead of blocking silently
- A whole-text replacement raises input like typing, so dirty forms and save bars notice it
- The capsule is lifted, movable by its grip and uses the window standard: move, expand and collapse labels and icons
- CodeMirror as a text editor (public/plugins/editors/codemirror/*):
- One getWidget() serves ContentDriver and CodeDriver; the manifest declares type ["content", "code"]
- Formats markdown, plain, html with Markdown stored, as Toast UI stores it; listed after Toast UI for both roles
- Text keeps spell check and the face of the page and has no line numbers (textSetup); Tab moves to the next field
Split build: core, lang-* files and shared chunks; Markdown on the GitHub base, INI from the official legacy modes, and own grammars for Apache and robots.txt
The editor screen highlights .htaccess as Apache and robots.txt as TXT; the file manager opens md as Markdown, ini as INI and robots.txt with its grammar
- Themes (templates admin and lite, base.css, theme.css, presentation.css):
- The rail of the frame is the left border of tab and card, running top to bottom with no line crossing it
- Lite gained the CodeMirror rules for a text; keyword and string tones raised to hold AA on the card
--sl-face-mono and --sl-face-quote declared in both themes; code, kbd, samp, pre, [code] and the presentation read them; Georgia, Courier and the old mono stacks are gone; the code editor sets 14px
- The window head and every grip take the grab and grabbing hand; collapse of a window reads "collapse"
- Dead .sl-editor-area rules and the is_editor_area branch removed; --sl-editor-height is the fallback floor
- Font ladder 12/13/14 in the contract and the rules, following the owner's micro and small sizes
- Code blocks (core/classes/parser.php, fragment code-block.html, public/plugins/system/slaed.js):
[code], [php], fenced and indented code render one block: the language, a copy button without line numbers, a fold above 25 lines, a body that takes the keyboard focus and scrolls
The highlight.js styling moved from the plugin into both themes on the CodeMirror tones, with dark mode; plugins/highlightjs/slaed-theme.css and its css_f default removed
- Highlight modes 0 and 1 no longer show the <?php prefix PHP 8.3+ leaves; the first line of code keeps its indent
- Copying a share address and a code block is one setCopyText()
- Panel screens and texts (admin/modules/template.php, editor.php, config.php, admin/info, lang/*):
- The template screen shows file and date in the editor tab and drops the separate row
- Plain Textarea is shown as Plain Plus; the help lists CodeMirror among the content editors
- Constants: _COPY, _COPYDONE, _SHOWALL, _COLLAPSE added; _ERESTORE reads collapse; editor-only copies removed
- Plans and stand (docs/, public/demo/):
- Roadmap step 31 done; editor plan records batch 4 and its decisions; pager plan, core 2027 plan and pager stand pages
Benefits:
- One editor standard and one window standard across both engines and both themes
- Code reads the same everywhere, follows the dark scheme and copies cleanly
Technical notes:
- Stored content is unchanged; CodeMirror as text stores Markdown like Toast UI
- css_f defaults to empty; an old path to the removed plugin stylesheet is skipped by getAssetList()
- Gates: ui:gates and the parser, editor, language and file format tests pass; the audit baseline is stored
Steps 28 and 29 of docs/ROADMAP-2026.md (batches 1 and 2 of docs/4-EDITOR-2026.md). The code editor is painted by the theme tokens in place of One Dark and speaks the locale in its panels; one check in Editor reads the manifest field type as a string or a list, so one plugin can serve as a text and a code editor; and the build writes the core and every language as files of their own, which the runtime of batch 3 loads on demand.
Core changes:
CodeMirror in the theme (public/plugins/editors/codemirror/driver.php, public/plugins/editors/codemirror/assets/cm6.css, public/templates/admin/assets/css/base.css, public/templates/admin/assets/css/theme.css, public/templates/lite/assets/css/theme.css, public/templates/admin/fragments/editor-mount.html, public/templates/lite/fragments/editor-mount.html):
The driver writes syntaxHighlighting(classHighlighter), so the theme colours the tok-* classes and the code follows the scheme; One Dark leaves the driver and the build
- The mount of a code editor carries the shell name sl-editor in place of sl-code-editor in both themes
--sl-face-mono and --sl-editor-max-height (50vh) join the admin API block; the height floor stands on .cm-content and .cm-gutter, and cm6.css keeps only the focus outline instead of a fixed 400 px
- The Tahoma rule on .cm-content and the doubled height of a second editor are gone
Line numbers and comments take --sl-text-muted, tags --sl-primary-strong, and the current node of the file tree --sl-primary-strong, so each holds AA
- Phrases of the panels (lang/de.php, lang/en.php, lang/fr.php, lang/pl.php, lang/ru.php, lang/uk.php):
Twenty-five EDITOR* constants for search, fold, go to line, lint, completion and the screen reader announcements; with _ALL, _CLOSE, _EDITOR_PREV and _EDITOR_NEXT the driver hands them to EditorState.phrases
- Manifest type (core/classes/editor.php, admin/index.php, public/plugins/editors/codemirror/manifest.json):
Editor::checkType() answers whether a manifest serves a type given as one string or a list, and replaces the comparisons of getCode(), checkManifest() and getEditorList()
isValidEditor() of admin/index.php, a copy of Editor::isValidEditor() with its own string comparison, is removed; the new administrator and the editor switch of the panel call the class
Editor::getManifest() takes over the one check only the copy made: a manifest whose id differs from its directory is refused, so no key reaches a manifest or a driver outside its own folder
The CodeMirror manifest declares type as ["code"]; content, the user role and the text formats join with its ContentDriver in batch 4, so no list offers a text editor that renders Plain
Split build (public/plugins/editors/codemirror/build/build.mjs, build/core.js, build/entry.js, build/package.json, public/plugins/editors/codemirror/assets/*.js):
ES modules with splitting: core.js, lang-<key>.js for php, html, css, js, json, sql, xml and markdown, each exporting language, and shared chunk-<hash>.js files named by their content
- The build refuses a language file that imports core.js, which a versioned core address would load a second time
- entry.js re-exports core.js and still builds cm6.bundle.js for the current driver until batch 3
- @codemirror/lang-markdown and the packages the exports name join package.json; theme-one-dark leaves
- Tests and registries (tests/Unit/EditorFormatTest.php, tools/ui-audit-baseline.json, tools/ui-contrast.json):
Code editors are handed to the theme as classes and speak the locale; both forms of type and a key leaving its folder; the three lists of getSelect(); a split file for every language of the manifest with no import of the core entry
- The audit baseline counts the two new tokens; the contrast registry is regenerated over the new screens
- Plans (docs/4-EDITOR-2026.md, docs/ROADMAP-2026.md):
Batches 1 and 2 record what was done and measured; batch 3 retires the bundle and the CM6.editors readers; batch 4 completes the manifest; the roadmap ticks steps 28 and 29
Benefits:
- Code follows the light and dark scheme of the panel and is readable at AA
A code screen will load the core and one grammar: 151.8 KB gzip for css or sql, 223.5 KB for php, against 239.5 KB of the bundle on every screen; the core alone is 130.5 KB
- One manifest check for the class and the panel
Technical notes:
- The split files have no user before batch 3; the bundle keeps its size and changes only minifier names
- Chunks are requested without v= and live a week in the browser, safe because their names follow their content
- No schema, address or API changes
Steps 25 to 27 of docs/ROADMAP-2026.md. The private data plan hands its lasting part to the reference and is deleted; batch 0 of the editor plan records the owner's answers, pins the lost <br> to the mount and takes the screenshot baseline; and the mount of getTplTextarea() no longer deletes every stored <br>, which made each save of the account settings strip the signature and the custom menu of every member writing in Markdown.
Core changes:
- Line breaks on mount (core/helpers.php, docs/EDITORS.md, docs/VERSIONS.md):
getTplTextarea() mounts a stored <br>, with the line end after it, as a line end for plain, which nl2br() of the save restores, and as a Markdown hard break, two spaces and a line end, for markdown; html mounts as it is
- replace_break() is no longer part of the mount and keeps its other callers
Measured through one save of the account settings in the browser: the custom menu went from 1475 bytes with 22 tags to 1431 bytes with 22 hard breaks instead of 1387 bytes with none, and a second save changed no byte
EDITORS.md replaces the open defect with "Line Breaks on Mount", the contract with the measurements; VERSIONS.md records the change
- Tests (tests/Unit/EditorBreakTest.php, tests/Support/break_probe.php):
Stored values go through the shipped mount, the browser submit and the save of both formats: the bytes written, a second save that changes nothing, the signature render before and after, and the escaped render of markdown
- The test fails on the old mount in three of its five methods
Private data reference (docs/ARCHITECTURE.md, README.md, UPGRADING.md, docs/VERSIONS.md, admin/info/security/ru.md, docs/2027-CONNECTOR.md, docs/0-PRIVATE-DATA-2026.md, tests/Unit/JournalNameTest.php, tests/Unit/JournalSecretTest.php, tests/Unit/SelfCheckTest.php, tests/Support/check_probe.php, tests/Support/journal_probe.php):
- ARCHITECTURE.md gains "Private Data Boundary": the public/ tree, the two modes, the self-check and the journals
- The security help lists every journal by file and what it holds, and describes the self-check
README.md names the public folders of uploads/ and the self-check; UPGRADING.md describes the self-check, the journals without secrets and their new names; VERSIONS.md records the whole plan, the document root included
- The plan is deleted; the comments of the journal and self-check tests and probes point at the reference
- Editor plan, batch 0 (docs/4-EDITOR-2026.md, tools/ui-shots.json):
- The seven open decisions are answered and settled under "Answered decisions", and the batches follow them
- The screenshot manifest gains the tplconfig, system file, block file, template style and new member screens
- The plan notes that the <br> defect was the mount and is repaired by item 1
- Roadmap (docs/ROADMAP-2026.md):
- Steps 25 to 27 are ticked; step 27, the repair of the <br> defect, was added by the owner before editor batch 1
Benefits:
- No member loses the breaks of a signature or a custom menu by saving an unrelated setting
A markdown break renders as <br> in the escaped render of comments and the forum too, where a stored <br> printed as text
- CodeMirror as a text editor mounts through the same function and does not inherit the loss
Technical notes:
Stored form: a value saved in markdown holds two spaces where it held <br>, two bytes less per break; a line of nothing but a <br> becomes an empty line, so the lines around it render as two paragraphs
Not fixed here: the WYSIWYG mode of Toast UI writes a hard break back as nothing and a <br> as a bare line end; the forward and quote of a private message are still stripped the old way, where only an inline <br> is lost
- No schema, address or API changes