1.3.2 • Published 7 months ago

@modusoperandi/licit-custom-styles v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Customstyle ProseMirror Plugin For Licit

Build Status GitHub last commit codecov

Build

Commands

  • npm install --legacy-peer-deps --omit=optional --no-shrinkwrap

  • npm pack

To use this in Licit

Run these commands before npm install.

Put the modusoperandi-licit-custom-styles-0.1.0.tgz file in your project location, open command prompt and run:

  • npm install modusoperandi-licit-custom-styles-0.1.0.tgz

Include plugin in licit component

  • import CustomstylePlugin

  • add CustomstylePlugin instance in licit's plugin array

import {CustomstylePlugin} from  '@modusoperandi/licit-custom-styles';

Expecting two parameters in CustomstylePlugin and the parameters are:

 1.A CustomStyleRuntime to configure the style service to licit expects methods like saveStyle(),getStyles(),renameStyle() and removeStyle(). Please refer *licit\client\CustomStyleRuntime.js* for getting more detailed idea.
 2. A boolean flag that indicating the custom style numbering should be displayed or not for the document. For hide numbering pass true.

import CustomStyleRuntime from  './CustomStyleRuntime';
const styleRuntime = new CustomStyleRuntime();
const plugins = [new CustomstylePlugin(styleRuntime,false)]

ReactDOM.render(<Licit docID={''} plugins={plugins}/>

To load the custom style list drop down and the style editor UI to an angular project

  • import the customstyle.css file in the default global CSS file (src\styles.scss) of the angular project.
    @import  "~@modusoperandi/licit-custom-styles/dist/customstyle.css";
1.2.0

7 months ago

1.0.17

8 months ago

1.0.16

8 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

12 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.0.7-rc.0

12 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

8 months ago

1.3.2

7 months ago

1.1.4

8 months ago

1.3.1

7 months ago

1.1.3

8 months ago

1.3.0

7 months ago

1.1.2

8 months ago

1.0.18-rc1

8 months ago

1.0.11

10 months ago

1.0.10

11 months ago

1.0.15

8 months ago

1.0.14

8 months ago

1.0.13

9 months ago

1.0.12

9 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.26

2 years ago

0.1.24-rc.0

3 years ago

0.1.24-rc.1

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.21

3 years ago

0.1.23

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.13

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.5

4 years ago

0.1.1

4 years ago