tinymce-4

TinyMCE stacks classes

妖精的绣舞 提交于 2020-03-03 07:44:09
问题 I'm using TinyMCE 4 as my default editor. In the config I specified style formats. This works excuistly except for one thing: it stacks classes. My style format: style_formats: [ { title: 'Heading 2', block: 'h2', classes: 'heading-02' }, { title: 'Heading 3', block: 'h3', classes: 'heading-03' }, { title: 'Heading 4', block: 'h4', classes: 'heading-04' }, { title: 'Heading 5', block: 'h5', classes: 'heading-05' }, { title: 'Text', block: 'p', classes: 'copy-02' }, ], After selecting text and

TinyMCE 4 insert link form fields disabled

我只是一个虾纸丫 提交于 2020-02-25 09:35:19
问题 I'm using the tinymce-rails gem which uses TinyMCE 4 and I'm loading the link plugin and all this is initiated after/in a colorbox popup. TinyMCE editor is working perfectly but the link button brings up a dialog to add/edit a link, but none of the fields except the target are available for editing. below is the related code: setup_new_message: -> tinyMCE.init selector: '.tinymce' plugins: "textcolor link" menubar: false toolbar: "formatselect | fontselect | bold italic underline | forecolor

TinyMCE 4 insert link form fields disabled

喜欢而已 提交于 2020-02-25 09:34:47
问题 I'm using the tinymce-rails gem which uses TinyMCE 4 and I'm loading the link plugin and all this is initiated after/in a colorbox popup. TinyMCE editor is working perfectly but the link button brings up a dialog to add/edit a link, but none of the fields except the target are available for editing. below is the related code: setup_new_message: -> tinyMCE.init selector: '.tinymce' plugins: "textcolor link" menubar: false toolbar: "formatselect | fontselect | bold italic underline | forecolor

TinyMCE Dirty Flag is not set or is reset automatically after Editor leaving?

混江龙づ霸主 提交于 2020-02-04 04:00:26
问题 After Configuring the TinyMce Editor and some Functions I want now to Warn the User if he did changes but did not save them. For that Iam Checking the Dirty Flag at Blur. But its always set false . controller.js this.$scope.tinymceOptions = { selector: 'textarea', menubar: false, plugins: 'save', save_enablewhendirty: true, save_onsavecallback: (editor) => { doing here my save stuff }, setup: function(editor) { editor.on('dirty', () => { console.log('dirty woop')//if i do edits its triggered

Responsive filemanager in tinymce, directory settings

一个人想着一个人 提交于 2020-01-15 23:03:10
问题 I'm using this file manager for file upload in tinymce. File Manager Having some problem with the directory. I'm using tinymce 4. My filemanager folder is in " localhost/BAD/ " directory, I have a file named about.php which is in " localhost/BAD/admin/ " directory. Now I can upload image and see from that about.php file. My settings of tinymce is **external_filemanager_path:"/BAD/filemanager/", filemanager_title:"Filemanager" , external_plugins: { "filemanager" : "filemanager/plugin.min.js"}*

Adding custom dropdown menu to tinyMCE and insert dynamic contents

偶尔善良 提交于 2020-01-15 06:19:01
问题 I've added some codes to add a dropdown menu to TinyMCE , as you can run the snippet it works great, but there is a problem in inserting the content into the editor. tempGroups and temp variables would be created in the back-end so it is impossible to use them statically. So I wrote the code below to insert content of each item into editor on selecting each item. But the problem is with selecting any item, it inserts the last content value : <p>Content44</p> for simplification I've changed

Adding custom dropdown menu to tinyMCE and insert dynamic contents

随声附和 提交于 2020-01-15 06:17:31
问题 I've added some codes to add a dropdown menu to TinyMCE , as you can run the snippet it works great, but there is a problem in inserting the content into the editor. tempGroups and temp variables would be created in the back-end so it is impossible to use them statically. So I wrote the code below to insert content of each item into editor on selecting each item. But the problem is with selecting any item, it inserts the last content value : <p>Content44</p> for simplification I've changed

How do I set content in TinyMCE 4, preferably within the $(document).ready(); block?

天涯浪子 提交于 2020-01-11 01:25:27
问题 As the title says, I've looked up the official documentation but it ain't working; here's my JavaScript (utilizing jQuery) code: $(document).ready(function() { tinymce.init({ element_format: "html", schema: "html4", menubar: false, plugins: 'preview textcolor link code', selector: 'TEXTAREA#rtf', toolbar: 'preview | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | blockquote subscript superscript | code' }); tinymce

TinyMCE and Angular Ui TinyMCE with autosave plugin

ⅰ亾dé卋堺 提交于 2020-01-07 03:51:51
问题 There is an issue with angular-ui-tinymce version 0.0.18 when using the autosave plugin. The plugin does not work with angular-ui-tinymce. This has been logged as an issue by someone else on Oct 20, 2016 to the angular-ui github account with no resolution. https://github.com/angular-ui/ui-tinymce/issues/300 Below is the code used : <!DOCTYPE html> <head> <script type="text/javascript" src="bower_components/tinymce/tinymce.js"></script> <script type="text/javascript" src="bower_components

How can I get the tinymce HTML content from within a C# ASP.Net application?

老子叫甜甜 提交于 2020-01-06 15:25:27
问题 I have a tinymce editor and I am wanting to grab the HTML contents of the editor within my C# ASPX code - but I am not entirely sure on the right way of doing this? Can somebody please suggest a best practice? I know I can get the HTML Content by calling this from javascript...but how would I pass that result back to my ASP.NET C# for storing in a database for example: tinymce.activeEditor.getContent() 回答1: Set your Page validate request to false first: <%@ Page ValidateRequest="false" ..