1.0.6 • Published 11 months ago
@modusoperandi/licit-custom-styles v1.0.6
Customstyle ProseMirror Plugin For Licit
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.0.6
11 months ago
1.0.5
12 months ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
0.1.26
2 years ago
0.1.24-rc.0
2 years ago
0.1.24-rc.1
2 years ago
0.1.24
2 years ago
0.1.25
2 years ago
0.1.21
2 years ago
0.1.23
2 years ago
0.1.18
2 years ago
0.1.19
2 years ago
0.1.16
2 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
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.5
3 years ago
0.1.1
3 years ago