@zohodesk/dot 1.0.0-temp-147 → 1.0.0-temp-148
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
-
# 1.0.0-beta.256
|
|
6
|
-
|
|
7
|
-
- **TextEditor** - blockquote css style tag removed and added margin inline style via editor object support "ZohoDeskEditor_Init.quoteData"
|
|
8
|
-
|
|
9
5
|
# 1.0.0-beta.255
|
|
10
6
|
|
|
11
7
|
- **TagWithIcon** - New component Added.
|
|
@@ -188,17 +188,16 @@ export default class TextEditor extends Component {
|
|
|
188
188
|
if (!global.editor[id]) {
|
|
189
189
|
global.editor[id] = editorObj;
|
|
190
190
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
191
|
+
const css = 'blockquote {margin:0 0 0 4px; }',
|
|
192
|
+
head = editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|
|
193
|
+
style = document.createElement('style');
|
|
194
|
+
style.type = 'text/css';
|
|
195
|
+
if (style.styleSheet) {
|
|
196
|
+
style.styleSheet.cssText = css;
|
|
197
|
+
} else {
|
|
198
|
+
style.appendChild(editorObj.doc.createTextNode(css));
|
|
199
|
+
}
|
|
200
|
+
head.appendChild(style);
|
|
202
201
|
editorCallback && editorCallback(editorObj);
|
|
203
202
|
const iframe = selectn('iframe.contentDocument.body', editorObj) || null;
|
|
204
203
|
const iframeHead = selectn('iframe.contentDocument.head', editorObj) || null;
|
|
@@ -216,17 +216,16 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
216
216
|
if (!global.editor[id]) {
|
|
217
217
|
global.editor[id] = editorObj;
|
|
218
218
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
219
|
+
var css = 'blockquote {margin:0 0 0 4px; }',
|
|
220
|
+
head = editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|
|
221
|
+
style = document.createElement('style');
|
|
222
|
+
style.type = 'text/css';
|
|
223
|
+
if (style.styleSheet) {
|
|
224
|
+
style.styleSheet.cssText = css;
|
|
225
|
+
} else {
|
|
226
|
+
style.appendChild(editorObj.doc.createTextNode(css));
|
|
227
|
+
}
|
|
228
|
+
head.appendChild(style);
|
|
230
229
|
editorCallback && editorCallback(editorObj);
|
|
231
230
|
var iframe = (0, _selectn["default"])('iframe.contentDocument.body', editorObj) || null;
|
|
232
231
|
var iframeHead = (0, _selectn["default"])('iframe.contentDocument.head', editorObj) || null;
|