Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some options are being ignored by the Editor #54

Closed
dtodt opened this issue Jun 17, 2020 · 1 comment
Closed

Some options are being ignored by the Editor #54

dtodt opened this issue Jun 17, 2020 · 1 comment

Comments

@dtodt
Copy link

dtodt commented Jun 17, 2020

Angular: ~8.2.14
Jodit: ^3.3.24
Angular Jodit: ^1.0.99

I'm trying to disable some features but, it's not working.

These are the options I'm trying to disable:

    cleanWhitespace: false,
    removeEmptyBlocks: false,
    removeEmptyNodes: false,

Apparently, this should be working, but the editor keeps removing my empty tags.
Is there any other feature that I need to disable or enable?

Here's my actual configuration:

  public editorModel = {
    askBeforePasteHTML: false,
    beautyHTML: false,
    buttons: [
      'fullsize',
      'undo',
      'redo',
      'about',
    ],
    defaultMode: '1',
    dialog: {
      resizable: false,
      draggable: false,
    },
    disablePlugins: 'placeholder',
    cleanHTML: {
      replaceNBSP: false,
    },
    cleanWhitespace: false,
    codeMirror: false,
    enableDragAndDropFileToEditor: false,
    removeEmptyBlocks: false,
    removeEmptyNodes: false,
    showCharsCounter: false,
    showWordsCounter: false,
    showXPathInStatusbar: false,
    spellcheck: false,
    toolbarButtonSize: 'large',
    uploader: {
      insertImageAsBase64URI: true,
    },
  };

Update:
I'm trying to use jodit as a document editor, and sometimes we need some spaces and such.

@dtodt
Copy link
Author

dtodt commented Jun 19, 2020

My bad, I guess it's working as expected, when I add a new line the editor put some space inside the tag, preventing it from being removed.

My problem was with my start model, that had some empty tags in it.

@dtodt dtodt closed this as completed Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant