Skip to content

Commit b0bebb1

Browse files
1010807: Resolved issues with staging
1 parent 61bb961 commit b0bebb1

2 files changed

Lines changed: 9 additions & 17 deletions

File tree

Document-Processing/PDF/PDF-Viewer/react/context-menu/custom-context-menu.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ You can add custom options to the context menu using the [addCustomMenu()](https
2222
2. Call the [`addCustomMenu`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#addcustommenu) method within the [`documentLoad`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#documentload) event handler.
2323

2424
```js
25-
export function App() {
26-
25+
export function App() {
2726
let menuItems = [
2827
{
2928
text: 'Search In Google',
@@ -55,7 +54,6 @@ You can add custom options to the context menu using the [addCustomMenu()](https
5554
var viewer = document.getElementById('container').ej2_instances[0];
5655
viewer.addCustomMenu(menuItems, false);
5756
}
58-
5957
return (
6058
<div>
6159
<div className='control-section'>
@@ -223,19 +221,13 @@ The following is the output of the custom context menu with customization.
223221

224222
{% tabs %}
225223
{% highlight js tabtitle="index.jsx" %}
226-
{% raw %}
227224
{% include code-snippet/pdfviewer/react/custom-context-menu/app/index.jsx %}
228-
{% endraw %}
229225
{% endhighlight %}
230226
{% highlight ts tabtitle="index.tsx" %}
231-
{% raw %}
232227
{% include code-snippet/pdfviewer/react/custom-context-menu/app/index.tsx %}
233-
{% endraw %}
234228
{% endhighlight %}
235229
{% endtabs %}
236230

237231
N> To set up the **server-backed PDF Viewer**, add the following `serviceUrl` within the <div> element in either the `index.TSX` or `index.JSX` file: **serviceUrl="https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer"**.
238232

239-
{% previewsample "document-processing/code-snippet/pdfviewer/react/custom-context-menu" %}
240-
241233
[View the sample in Stack blitz](https://stackblitz.com/edit/react-zmbkebwq?file=index.js)

Document-Processing/PDF/PDF-Viewer/react/theming-and-styling.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ The PDF Viewer applies styles to the toolbar, buttons, panels, annotations, and
2828
**Step-2:** To change the theme to tailwind, add the imports to tailwind theme in `app.css`.
2929

3030
```css
31-
@import '../node_modules/@syncfusion/ej2-base/styles/tailwind3.css';
32-
@import '../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css';
33-
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/tailwind3.css';
34-
@import '../node_modules/@syncfusion/ej2-inputs/styles/tailwind3.css';
35-
@import '../node_modules/@syncfusion/ej2-navigations/styles/tailwind3.css';
36-
@import '../node_modules/@syncfusion/ej2-popups/styles/tailwind3.css';
37-
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/tailwind3.css';
38-
@import "../node_modules/@syncfusion/ej2-pdfviewer/styles/tailwind3.css";
31+
@import '../node_modules/@syncfusion/ej2-base/styles/tailwind3.css';
32+
@import '../node_modules/@syncfusion/ej2-buttons/styles/tailwind3.css';
33+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/tailwind3.css';
34+
@import '../node_modules/@syncfusion/ej2-inputs/styles/tailwind3.css';
35+
@import '../node_modules/@syncfusion/ej2-navigations/styles/tailwind3.css';
36+
@import '../node_modules/@syncfusion/ej2-popups/styles/tailwind3.css';
37+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/tailwind3.css';
38+
@import "../node_modules/@syncfusion/ej2-pdfviewer/styles/tailwind3.css";
3939
```
4040

4141
### Tutorial

0 commit comments

Comments
 (0)