Sha256: 70cdc5f5bab0f8e1bd1bfb64feab49f7b28985f02c496cdb04fb29e2e84a508d
Contents?: true
Size: 605 Bytes
Versions: 3
Compression:
Stored size: 605 Bytes
Contents
import contextHelpers from "./context"; export default (ctx) => { const { getControl, setContent } = contextHelpers(ctx); describe("hardBreak", () => { it("creates a new line break at the cursor position", async () => { await setContent("Hello, world!"); ctx.prosemirror.focus(); getControl("hardBreak").click(); // Note that the "tailingBreak" is only ProseMirror's internal element // to place the cursor at the correct location. expect(ctx.prosemirror.innerHTML).toEqual('<p>Hello, world!<br><br class="ProseMirror-trailingBreak"></p>'); }); }); };
Version data entries
3 entries across 3 versions & 1 rubygems