CM6: Updated for popup editor, added new interface

New simple interface added for abstraction of CM editor in simple
use-cases, just to provide common actions like get/set content, focus
and set mode.
This commit is contained in:
Dan Brown
2023-04-17 13:24:29 +01:00
parent 09fd0bc5b7
commit 900571ac9c
7 changed files with 215 additions and 177 deletions

View File

@ -26,7 +26,7 @@ function common(parentEl) {
* @param {Element} parentEl
* @return {*[]}
*/
export function viewer(parentEl) {
export function viewerExtensions(parentEl) {
return [
...common(parentEl),
keymap.of([
@ -40,7 +40,7 @@ export function viewer(parentEl) {
* @param {Element} parentEl
* @return {*[]}
*/
export function editor(parentEl) {
export function editorExtensions(parentEl) {
return [
...common(parentEl),
history(),